ZenFS
    Preparing search index...

    Class StatsCommon<T>Abstract

    Provides information about a particular entry in the file system. Common code used by both Stats and BigIntStats.

    Type Parameters

    • T extends number | bigint

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    • Creates a new stats instance from a stats-like object. Can be used to copy stats (note)

      Type Parameters

      • T extends number | bigint

      Parameters

      • __namedParameters: Partial<StatsLike<number | bigint> & InodeFields> = {}

      Returns StatsCommon<T>

    Properties

    _isBigint: T extends bigint ? true : false
    atimeMs: T

    Time of last access, since epoch

    birthtimeMs: T

    Time of file creation, since epoch

    blksize: T = ...

    Block size for file system I/O

    ctimeMs: T

    Time of last time file status was changed, since epoch

    data?: number

    Used by inodes

    dev: T = ...

    ID of device containing file

    flags?: number

    Used by inodes

    gid: T = ...

    Group ID of owner

    ino: T = ...

    Inode number

    mode: T

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

    mtimeMs: T

    Time of last modification, since epoch

    nlink: T = ...

    Number of hard links

    rdev: T = ...

    Device ID (if special file)

    size: T

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

    uid: T = ...

    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 birthtime(): Date

      Returns Date

    • set birthtime(value: Date): void

      Parameters

      • value: Date

      Returns void

    • 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 mtime(): Date

      Returns Date

    • set mtime(value: Date): void

      Parameters

      • value: Date

      Returns void

    Methods

    • Parameters

      • arg: string | number | bigint | boolean

      Returns T

    • 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

    • Returns boolean

    • Returns boolean

    • Returns boolean

    • Returns boolean

    • Returns boolean

    • Returns boolean

    • Returns boolean