FileSystem

Moduleejs.io
Definition class FileSystem
InheritanceFileSystem inherit Object
Specifiedejscript-1.1
StabilityPrototype.

The FileSystem class provides access to information about file systems hosting files.


Properties

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

FileSystem Methods

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