MetadataUnix
, but using Linux’s statx
syscall. On Linux versions below 4.11, statx
will be filled with data from stat.
Functions
fn accessed(self: Self) i128
Returns the last time the file was accessed in nanoseconds since UTC 1970-01-01
fn created(self: Self) ?i128
Returns the time the file was created in nanoseconds since UTC 1970-01-01 Retur…
Returns the time the file was created in nanoseconds since UTC 1970-01-01 Returns null if this is not supported by the filesystem, or on kernels before than version 4.11
fn modified(self: Self) i128
Returns the last time the file was modified in nanoseconds since UTC 1970-01-01
fn permissions(self: Self) Permissions
Returns a
Permissions
struct, representing the permissions on the file