MetadataUnix, but using Linux’s statx syscall. On Linux versions below 4.11, statx will be filled with data from stat.

Fields

statx: os.linux.Statx,

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 kind(self: Self) Kind

Returns the Kind of the file

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

fn size(self: Self) u64

Returns the size of the file