FileSystem
Module | ejs.io |
Definition | class FileSystem |
Inheritance | FileSystem ![]() |
Specified | ejscript-1.1 |
Stability | Prototype. |
The FileSystem class provides access to information about file systems hosting files.
Properties
Qualifiers | Property | Type | Description |
---|---|---|---|
public get | hasDrives | Boolean | Do path names on this file system support drive specifications. |
public get set | newline | String | The new line characters for this file system. Usually "\n" or "\r\n". |
public get | root | Path | Path to the root directory of the file system. |
public get set | separators | String | Path directory separators. The first character is the default separator. Usually "/" or "\\". |
FileSystem Methods
Qualifiers | Method |
---|---|
FileSystem(path: Object) | |
Create a new FileSystem object based on the given path. |
Method Detail
public FileSystem(path: Object)
Create a new FileSystem object based on the given path.
- Parameters
path: Object String or Path of the file system.