|
| info (const zpath &path) noexcept |
| Constructor with file path.
|
|
bool | exists () const noexcept |
| Get whether the file object exists and can be accessed.
|
|
time_t | accessed () const noexcept |
| Get the time that the file was last accessed.
|
|
time_t | modified () const noexcept |
| Get the time that the file was last modified.
|
|
time_t | changed () const noexcept |
| Get the time that the file's status was last changed.
|
|
size_t | size () const noexcept override |
| Get the size of the file.
|
|
int | device () const noexcept |
| Get the number of the device where the file is stored.
|
|
mode_t | mode () const noexcept |
| Get the mode (permissions) of the file.
|
|
bool | directory () const noexcept |
| Check if this file is a directory.
|
|
bool | symlink () const noexcept |
| Check if this file is a symbolic link.
|
|
bool | regular () const noexcept |
| Check if this file is a regular file.
|
|
A class to allow a platform-independent way to get information on a file.
As not all Linux file system options have a Windows analog, this class is not a full wrapper for the stat struct. It does however allow for retrieval of the most common file information (e.g. file size, modification date, etc).