struct FileEntry

Special type for files as entries in directories. Analogue of the 'dirent' structure type.

string path

Path to file.

ulong fileno

Inode serial number.

FileType type

UNIX file type. See: enum FileType.

FileStat filestat

File properties.

this(string filepath)

Creates an instance of a class from an existing file by its path.

void updateFileStat()

Updates information about the properties of the file.

FileStat getFileStat() const

Returns saved information about the properties of the file.

bool isLinkToDir()

Checks if the file is a symbolic link to a directory. The check is recursive (if the link points to a link).

Variables

path

Path to file.

fileno

Inode serial number.

type

UNIX file type. See: enum FileType.

filestat

File properties.

Methods

this
updateFileStat
getFileStat
isLinkToDir