|
WPILibC++
2020.3.2
|
Represents the result of a call to directory_iterator::status(). More...
#include <FileSystem.h>
Public Member Functions | |
| basic_file_status (file_type Type) | |
| basic_file_status (file_type Type, perms Perms, time_t ATime, uint32_t ATimeNSec, time_t MTime, uint32_t MTimeNSec, uid_t UID, gid_t GID, off_t Size) | |
| file_type | type () const |
| perms | permissions () const |
| TimePoint | getLastAccessedTime () const |
| The file access time as reported from the underlying file system. More... | |
| TimePoint | getLastModificationTime () const |
| The file modification time as reported from the underlying file system. More... | |
| uint32_t | getUser () const |
| uint32_t | getGroup () const |
| uint64_t | getSize () const |
| void | type (file_type v) |
| void | permissions (perms p) |
Represents the result of a call to directory_iterator::status().
This is a subset of the information returned by a regular sys::fs::status() call, and represents the information provided by Windows FileFirstFile/FindNextFile.
| TimePoint wpi::sys::fs::basic_file_status::getLastAccessedTime | ( | ) | const |
The file access time as reported from the underlying file system.
Also see comments on getLastModificationTime() related to the precision of the returned value.
| TimePoint wpi::sys::fs::basic_file_status::getLastModificationTime | ( | ) | const |
The file modification time as reported from the underlying file system.
The returned value allows for nanosecond precision but the actual resolution is an implementation detail of the underlying file system. There is no guarantee for what kind of resolution you can expect, the resolution can differ across platforms and even across mountpoints on the same machine.