Provides information about a particular entry in the file system.
Type of the item (FILE, DIRECTORY, SYMLINK, or SOCKET)
Size of the item in bytes. For directories/symlinks, this is normally the size of the struct that represents the item.
Optional
mode: number | bigintUnix-style file mode (e.g. 0o644)
Optional
atimeMs: number | biginttime of last access, in milliseconds since epoch
Optional
mtimeMs: number | biginttime of last modification, in milliseconds since epoch
Optional
ctimeMs: number | biginttime of last time file status was changed, in milliseconds since epoch
Optional
uid: number | bigintthe id of the user that owns the file
Optional
gid: number | bigintthe id of the group that owns the file
Optional
birthtimeMs: number | biginttime of file creation, in milliseconds since epoch
Protected
_isblocksize for file system I/O
ID of device containing file
Some file systems stash data on stats objects.
group ID of owner
inode number
number of hard links
device ID (if special file)
user ID of owner
Protected
_typenameProtected
_typename_Protected
_convertChecks if a given user/group has access to this item
The request access as 4 bits (unused, read, write, execute)
[Boolean] True if the request has access, false if the request does not
Static
DeserializeStatic
cloneClone a stats object.
Generated using TypeDoc
Stats with bigint
Todo
Implement with bigint instead of wrapping Stats