Implementation of Node's Stats.

Attribute descriptions are from `man 2 stat'

Hierarchy (View Summary)

Implements

Constructors

Properties

_isBigint: false = ...
atimeMs: number

Time of last access, since epoch

birthtimeMs: number

Time of file creation, since epoch

blksize: number = ...

Block size for file system I/O

ctimeMs: number

Time of last time file status was changed, since epoch

data?: number

Used by inodes

dev: number = ...

ID of device containing file

flags?: number

Used by inodes

gid: number = ...

Group ID of owner

ino: number = ...

Inode number

mode: number

Unix-style file mode (e.g. 0o644) that includes the type of the item.

mtimeMs: number

Time of last modification, since epoch

nlink: number = ...

Number of hard links

rdev: number = ...

Device ID (if special file)

size: number

Size of the item in bytes. For directories/symlinks, this is normally the size of the struct that represents the item.

uid: number = ...

User ID of owner

version?: number

Used by inodes

Accessors

  • get atime(): Date

    Returns Date

  • set atime(value: Date): void

    Parameters

    • value: Date

    Returns void

  • get atimeNs(): bigint

    Returns bigint

  • get birthtime(): Date

    Returns Date

  • set birthtime(value: Date): void

    Parameters

    • value: Date

    Returns void

  • get birthtimeNs(): bigint

    Returns bigint

  • get blocks(): T

    Returns T

  • set blocks(value: T): void

    Parameters

    • value: T

    Returns void

  • get ctime(): Date

    Returns Date

  • set ctime(value: Date): void

    Parameters

    • value: Date

    Returns void

  • get ctimeNs(): bigint

    Returns bigint

  • get mtime(): Date

    Returns Date

  • set mtime(value: Date): void

    Parameters

    • value: Date

    Returns void

  • get mtimeNs(): bigint

    Returns bigint

Methods

  • Internal

    Checks if a given user/group has access to this item

    Parameters

    • mode: number

      The requested access, combination of W_OK, R_OK, and X_OK

    • Optionalcontext: V_Context

    Returns boolean

    True if the request has access, false if the request does not