V8 Javascript API

fs.Stats Class Reference

[File System]

Description

File Stats data

Functions

Boolean isDirectory()
Whether this file is a directory. More...
Boolean isFile()
Whether this file is a file. More...

Properties

String  atime
The file access time in seconds from Unix Epoch.
String  ctime
The file change time in seconds from Unix Epoch.
Boolean  executable
True if the file is executable
String  mtime
The file modification time in seconds from Unix Epoch.
Boolean  readable
True if the file is readable
String  size
The file size in bytes.
Boolean  writeable
True if the file is writeable

Functions

Boolean fs.​Stats.isDirectory()

Whether this file is a directory.

Boolean fs.​Stats.isFile()

Whether this file is a file.

Properties

String fs.​Stats.atime

The file access time in seconds from Unix Epoch.

String fs.​Stats.ctime

The file change time in seconds from Unix Epoch.

Boolean fs.​Stats.executable

True if the file is executable

String fs.​Stats.mtime

The file modification time in seconds from Unix Epoch.

Boolean fs.​Stats.readable

True if the file is readable

String fs.​Stats.size

The file size in bytes.

Boolean fs.​Stats.writeable

True if the file is writeable