Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
This commit is contained in:
commit
c260b22fbc
1 changed files with 9 additions and 9 deletions
|
|
@ -1769,16 +1769,16 @@ else:
|
||||||
FileId = TIno
|
FileId = TIno
|
||||||
|
|
||||||
type
|
type
|
||||||
FileInfo = object
|
FileInfo* = object
|
||||||
## Contains information associated with a file object.
|
## Contains information associated with a file object.
|
||||||
id: tuple[device: DeviceId, file: FileId] # Device and file id.
|
id*: tuple[device: DeviceId, file: FileId] # Device and file id.
|
||||||
kind: TPathComponent # Kind of file object - directory, symlink, etc.
|
kind*: TPathComponent # Kind of file object - directory, symlink, etc.
|
||||||
size: BiggestInt # Size of file.
|
size*: BiggestInt # Size of file.
|
||||||
permissions: set[TFilePermission] # File permissions
|
permissions*: set[TFilePermission] # File permissions
|
||||||
linkCount: BiggestInt # Number of hard links the file object has.
|
linkCount*: BiggestInt # Number of hard links the file object has.
|
||||||
lastAccessTime: TTime # Time file was last accessed.
|
lastAccessTime*: TTime # Time file was last accessed.
|
||||||
lastWriteTime: TTime # Time file was last modified/written to.
|
lastWriteTime*: TTime # Time file was last modified/written to.
|
||||||
creationTime: TTime # Time file was created. Not supported on all systems!
|
creationTime*: TTime # Time file was created. Not supported on all systems!
|
||||||
|
|
||||||
template rawToFormalFileInfo(rawInfo, formalInfo): expr =
|
template rawToFormalFileInfo(rawInfo, formalInfo): expr =
|
||||||
## Transforms the native file info structure into the one nimrod uses.
|
## Transforms the native file info structure into the one nimrod uses.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue