std.fs.stat

std.fs

stat(path) -> info, err

Get file or directory status information

Returns a table with fields: mode (file type character), size, perms, uid, gid, atime, mtime, ctime, dev, ino. Returns nil and error on failure.