Constructor
new FileStat(optsopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object |
<optional> |
A optional hash of values. Properties
|
- Source:
Members
gid :number
The numeric id of the group that owns the file.
- Default Value:
-
- 0
- Source:
mode :number
The file mode.
- Default Value:
-
- 0
- Source:
mtimeMs :Date
Name is the name of the setting. Setting names should be unique, to prevent confusion.
- Default Value:
-
- 1899-12-31T:00:00:00Z
- Source:
size :number
The size of the file, in bytes.
- Default Value:
-
- 0
- Source:
type :string
Indicates the type of file or object this is. Valid values include: file, link, symlink, directory block-device, character-device, fifo, contiguous-file, and unknown.
- Default Value:
-
- "unknown"
- Source:
uid :number
The numeric id of the user who owns the file.
- Default Value:
-
- 0
- Source:
Methods
isDirectory() → {boolean}
isFile returns the value of this object's isTypeDir property. It exists for compatibility with the interface of Node.js's fs.Stats.
- Source:
isFile() → {boolean}
isFile returns the value of this object's isTypeFile property. It exists for compatibility with the interface of Node.js's fs.Stats.
- Source: