# Class Stats

A `fs.Stats` object provides information about a file.

Objects returned from stat, lstat and fstat and their synchronous counterparts are of this type. If `bigint` in the `options` passed to those methods is true, the numeric values will be `bigint` instead of `number`, and the object will contain additional nanosecond-precision properties suffixed with `Ns`.

    Stats {
      dev: 2114,
      ino: 48064969,
      mode: 33188,
      nlink: 1,
      uid: 85,
      gid: 100,
      rdev: 0,
      size: 527,
      blksize: 4096,
      blocks: 8,
      atimeMs: 1318289051000.1,
      mtimeMs: 1318289051000.1,
      ctimeMs: 1318289051000.1,
      birthtimeMs: 1318289051000.1,
      atime: Mon, 10 Oct 2011 23:24:11 GMT,
      mtime: Mon, 10 Oct 2011 23:24:11 GMT,
      ctime: Mon, 10 Oct 2011 23:24:11 GMT,
      birthtime: Mon, 10 Oct 2011 23:24:11 GMT }

`bigint` version:

    BigIntStats {
      dev: 2114n,
      ino: 48064969n,
      mode: 33188n,
      nlink: 1n,
      uid: 85n,
      gid: 100n,
      rdev: 0n,
      size: 527n,
      blksize: 4096n,
      blocks: 8n,
      atimeMs: 1318289051000n,
      mtimeMs: 1318289051000n,
      ctimeMs: 1318289051000n,
      birthtimeMs: 1318289051000n,
      atimeNs: 1318289051000000000n,
      mtimeNs: 1318289051000000000n,
      ctimeNs: 1318289051000000000n,
      birthtimeNs: 1318289051000000000n,
      atime: Mon, 10 Oct 2011 23:24:11 GMT,
      mtime: Mon, 10 Oct 2011 23:24:11 GMT,
      ctime: Mon, 10 Oct 2011 23:24:11 GMT,
      birthtime: Mon, 10 Oct 2011 23:24:11 GMT }

#### Since

v0.1.21

#### Hierarchy (view full)

- StatsBase<number>
  - Stats

- Defined in node_modules/@types/node/fs.d.ts:72
- Defined in node_modules/@types/node/fs.d.ts:133

#####
Index

### Constructors

constructor

### Properties

dev
ino
mode
nlink
uid
gid
rdev
size
blksize
blocks
atimeMs
mtimeMs
ctimeMs
birthtimeMs
atime
mtime
ctime
birthtime

### Methods

isFile
isDirectory
isBlockDevice
isCharacterDevice
isSymbolicLink
isFIFO
isSocket

##
Constructors

### constructor

- new Stats(): Stats

- #### Returns Stats

  Inherited from StatsBase<number>.constructor

##
Properties

### dev

dev: number

Inherited from StatsBase.dev

- Defined in node_modules/@types/node/fs.d.ts:53

### ino

ino: number

Inherited from StatsBase.ino

- Defined in node_modules/@types/node/fs.d.ts:54

### mode

mode: number

Inherited from StatsBase.mode

- Defined in node_modules/@types/node/fs.d.ts:55

### nlink

nlink: number

Inherited from StatsBase.nlink

- Defined in node_modules/@types/node/fs.d.ts:56

### uid

uid: number

Inherited from StatsBase.uid

- Defined in node_modules/@types/node/fs.d.ts:57

### gid

gid: number

Inherited from StatsBase.gid

- Defined in node_modules/@types/node/fs.d.ts:58

### rdev

rdev: number

Inherited from StatsBase.rdev

- Defined in node_modules/@types/node/fs.d.ts:59

### size

size: number

Inherited from StatsBase.size

- Defined in node_modules/@types/node/fs.d.ts:60

### blksize

blksize: number

Inherited from StatsBase.blksize

- Defined in node_modules/@types/node/fs.d.ts:61

### blocks

blocks: number

Inherited from StatsBase.blocks

- Defined in node_modules/@types/node/fs.d.ts:62

### atimeMs

atimeMs: number

Inherited from StatsBase.atimeMs

- Defined in node_modules/@types/node/fs.d.ts:63

### mtimeMs

mtimeMs: number

Inherited from StatsBase.mtimeMs

- Defined in node_modules/@types/node/fs.d.ts:64

### ctimeMs

ctimeMs: number

Inherited from StatsBase.ctimeMs

- Defined in node_modules/@types/node/fs.d.ts:65

### birthtimeMs

birthtimeMs: number

Inherited from StatsBase.birthtimeMs

- Defined in node_modules/@types/node/fs.d.ts:66

### atime

atime: Date

Inherited from StatsBase.atime

- Defined in node_modules/@types/node/fs.d.ts:67

### mtime

mtime: Date

Inherited from StatsBase.mtime

- Defined in node_modules/@types/node/fs.d.ts:68

### ctime

ctime: Date

Inherited from StatsBase.ctime

- Defined in node_modules/@types/node/fs.d.ts:69

### birthtime

birthtime: Date

Inherited from StatsBase.birthtime

- Defined in node_modules/@types/node/fs.d.ts:70

##
Methods

### isFile

- isFile(): boolean

- #### Returns boolean

  Inherited from StatsBase.isFile

  - Defined in node_modules/@types/node/fs.d.ts:46

### isDirectory

- isDirectory(): boolean

- #### Returns boolean

  Inherited from StatsBase.isDirectory

  - Defined in node_modules/@types/node/fs.d.ts:47

### isBlockDevice

- isBlockDevice(): boolean

- #### Returns boolean

  Inherited from StatsBase.isBlockDevice

  - Defined in node_modules/@types/node/fs.d.ts:48

### isCharacterDevice

- isCharacterDevice(): boolean

- #### Returns boolean

  Inherited from StatsBase.isCharacterDevice

  - Defined in node_modules/@types/node/fs.d.ts:49

### isSymbolicLink

- isSymbolicLink(): boolean

- #### Returns boolean

  Inherited from StatsBase.isSymbolicLink

  - Defined in node_modules/@types/node/fs.d.ts:50

### isFIFO

- isFIFO(): boolean

- #### Returns boolean

  Inherited from StatsBase.isFIFO

  - Defined in node_modules/@types/node/fs.d.ts:51

### isSocket

- isSocket(): boolean

- #### Returns boolean

  Inherited from StatsBase.isSocket

  - Defined in node_modules/@types/node/fs.d.ts:52