FileSystem
Module | ejs |
Definition | class FileSystem |
Inheritance | FileSystem ![]() |
Specified | ejscript-2.5 |
Stability | Prototype. |
The FileSystem objects provide global information about a file systems.
Properties
Qualifiers | Property | Type | Description |
---|---|---|---|
get | hasDrives | Boolean | Do path names on this file system support a drive specifications. |
get set | newline | String | The new line characters for this file system. Usually "\n" or "\r\n". |
get | root | Path | Path to the root directory of the file system. |
get set | separators | String | Path directory separators. The first character is the default separator. Usually "/" or "\\". |
FileSystem Class Methods
Qualifiers | Method |
---|---|
static | drives(): Array |
Get a list of file system drives. |
FileSystem Instance Methods
Qualifiers | Method |
---|---|
FileSystem(path: Path = null) | |
Create a new FileSystem object for the file system that contains the given path. |
Method Detail
FileSystem(path: Path = null)
- Description
- Create a new FileSystem object for the file system that contains the given path.
- Parameters
path: Path String or Path of a file that would reside in the file system. [default: null]
static drives(): Array
- Description
- Get a list of file system drives.
- Returns
- An array of drives. Returns an empty list on systems without drive specifiers in filenames.