FileInfo

Contains general information about a file.

Members

Variables

directory
NativePath directory;

The directory containing the file

hidden
bool hidden;

True if the file's hidden attribute is set.

isDirectory
bool isDirectory;

True if this is a directory or a symlink pointing to a directory

isFile
bool isFile;

True if this is a file. On POSIX if both isFile and isDirectory are false it is a special file.

isSymlink
bool isSymlink;

True if this is a symlink to an actual file

name
string name;

Name of the file (not including the path)

size
ulong size;

Size of the file (zero for directories)

timeCreated
SysTime timeCreated;

Time of creation (not available on all operating systems/file systems)

timeModified
SysTime timeModified;

Time of the last modification

Meta