FileSystem

Moduleejs
Definition class FileSystem
InheritanceFileSystem inherit Object
Specifiedejscript-2.5
StabilityPrototype.

The FileSystem objects provide global information about a file systems.


Properties

QualifiersPropertyTypeDescription
get hasDrivesBooleanDo path names on this file system support a drive specifications.
get set newlineStringThe new line characters for this file system. Usually "\n" or "\r\n".
get rootPathPath to the root directory of the file system.
get set separatorsStringPath directory separators. The first character is the default separator. Usually "/" or "\\".

FileSystem Class Methods

QualifiersMethod
static drives(): Array
 Get a list of file system drives.

FileSystem Instance Methods

QualifiersMethod
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.