Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Stats

Objects returned from fs.stat(), fs.lstat() and fs.fstat() and their synchronous counterparts are of this type.

Hierarchy

  • Stats

Index

Properties

atime

atime: Date

"Access Time" - Time when file data last accessed. Changed by the mknod(2), utimes(2), and read(2) system calls.

birthtime

birthtime: Date

"Birth Time" - Time of file creation. Set once when the file is created. On filesystems where birthtime is not available, this field may instead hold either the ctime or 1970-01-01T00:00Z (ie, unix epoch timestamp 0). Note that this value may be greater than atime or mtime in this case. On Darwin and other FreeBSD variants, also set if the atime is explicitly set to an earlier value than the current birthtime using the utimes(2) system call.

blksize

blksize: number

blocks

blocks: number

ctime

ctime: Date

"Change Time" - Time when file status was last changed (inode data modification). Changed by the chmod(2), chown(2), link(2), mknod(2), rename(2), unlink(2),utimes(2), read(2), and write(2) system calls.

dev

dev: number

gid

gid: number

ino

ino: number

mode

mode: number

mtime

mtime: Date

"Modified Time" - Time when file data last modified. Changed by the mknod(2), utimes(2), and write(2) system calls.

nlink

nlink: number

rdev

rdev: number

size

size: number

uid

uid: number

Methods

isBlockDevice

  • isBlockDevice(): boolean

isCharacterDevice

  • isCharacterDevice(): boolean

isDirectory

  • isDirectory(): boolean

isFIFO

  • isFIFO(): boolean

isFile

  • isFile(): boolean

isSocket

  • isSocket(): boolean

isSymbolicLink

  • isSymbolicLink(): boolean

Generated using TypeDoc