new FileProps()
Represents properties of a file on the file system.
- Source:
Methods
creationTime() → {number}
The date the file was created
- Source:
Returns:
- Type
- number
isDirectory() → {boolean}
Is the file a directory?
- Source:
Returns:
- Type
- boolean
isOther() → {boolean}
Is the file some other type? (I.e. not a directory, regular file or symbolic link)
- Source:
Returns:
- Type
- boolean
isRegularFile() → {boolean}
Is the file a regular file?
- Source:
Returns:
- Type
- boolean
isSymbolicLink() → {boolean}
Is the file a symbolic link?
- Source:
Returns:
- Type
- boolean
lastAccessTime() → {number}
The date the file was last accessed
- Source:
Returns:
- Type
- number
lastModifiedTime() → {number}
The date the file was last modified
- Source:
Returns:
- Type
- number
size() → {number}
The size of the file, in bytes
- Source:
Returns:
- Type
- number