The OpenD Programming Language

DirEntry

Info on a file, similar to what you'd get from stat on a POSIX system.

Constructors

this
this(string path)

Constructs a DirEntry for the given file (or directory).

Members

Properties

attributes
uint attributes [@property getter]

Returns the attributes of the file represented by this DirEntry.

isDir
bool isDir [@property getter]

Returns whether the file represented by this DirEntry is a directory.

isFile
bool isFile [@property getter]

Returns whether the file represented by this DirEntry is a file.

isSymlink
bool isSymlink [@property getter]

Returns whether the file represented by this DirEntry is a symbolic link.

linkAttributes
uint linkAttributes [@property getter]

On POSIX systems, if the file represented by this DirEntry is a symbolic link, then linkAttributes are the attributes of the symbolic link itself. Otherwise, linkAttributes is identical to attributes.

name
string name [@property getter]

Returns the path to the file represented by this DirEntry.

size
ulong size [@property getter]

Returns the size of the file represented by this DirEntry in bytes.

statBuf
stat_t statBuf [@property getter]

This function is POSIX-Only.

timeCreated
SysTime timeCreated [@property getter]

This function is Windows-Only.

timeLastAccessed
SysTime timeLastAccessed [@property getter]

Returns the time that the file represented by this DirEntry was last accessed.

timeLastModified
SysTime timeLastModified [@property getter]

Returns the time that the file represented by this DirEntry was last modified.

timeStatusChanged
SysTime timeStatusChanged [@property getter]

This function is POSIX-Only.

Meta