Class BigIntStats

Stats with bigint

Hierarchy (view full)

Implements

Constructors

Properties

_isBigint: true = ...
atimeMs: bigint

Time of last access, since epoch

birthtimeMs: bigint

Time of file creation, since epoch

blksize: bigint = ...

Block size for file system I/O

ctimeMs: bigint

Time of last time file status was changed, since epoch

dev: bigint = ...

ID of device containing file

fileData?: Uint8Array

Some file systems stash data on stats objects.

gid: bigint = ...

Group ID of owner

ino: bigint = ...

Inode number

mode: bigint

Unix-style file mode (e.g. 0o644) that includes the type of the item. Type of the item can be FILE, DIRECTORY, SYMLINK, or SOCKET

mtimeMs: bigint

Time of last modification, since epoch

nlink: bigint = ...

Number of hard links

rdev: bigint = ...

Device ID (if special file)

size: bigint

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

uid: bigint = ...

User ID of owner

Accessors

  • get atime(): Date
  • Returns Date

  • set atime(value): void
  • Parameters

    • value: Date

    Returns void

  • get atimeNs(): bigint
  • Returns bigint

  • get birthtime(): Date
  • Returns Date

  • set birthtime(value): void
  • Parameters

    • value: Date

    Returns void

  • get birthtimeNs(): bigint
  • Returns bigint

  • get blocks(): T
  • Returns T

  • get ctime(): Date
  • Returns Date

  • set ctime(value): void
  • Parameters

    • value: Date

    Returns void

  • get ctimeNs(): bigint
  • Returns bigint

  • get mtime(): Date
  • Returns Date

  • set mtime(value): void
  • Parameters

    • value: Date

    Returns void

  • get mtimeNs(): bigint
  • Returns bigint

Methods

  • Parameters

    • arg:
          | string
          | number
          | bigint
          | boolean

    Returns bigint

  • Internal

    Change the mode of the file. We use this helper function to prevent messing up the type of the file.

    Parameters

    • mode: number

    Returns void

    This will be removed in the next minor release since it is internal

  • Internal

    Change the owner user/group of the file. This function makes sure it is a valid UID/GID (that is, a 32 unsigned int)

    Parameters

    • uid: number
    • gid: number

    Returns void

    This will be removed in the next minor release since it is internal

  • 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

    Returns boolean

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