Represents a directory on disk that can be watched for changes.
Creates the directory on disk that corresponds to ::getPath()
if
no such directory already exists.
Argument | Description |
---|---|
|
optional
Number that defaults to |
Return values |
---|
Returns a Promise that resolves once the directory is created on disk. It resolves to a boolean value that is true if the directory was created or false if it already existed. |
Invoke the given callback when the directory’s contents change.
Argument | Description |
---|---|
|
Function to be called when the directory’s contents change. |
Return values |
---|
Returns a Disposable on which |
Return values |
---|
Returns a promise that resolves to a Boolean, true if the directory exists, false otherwise. |
This may include unfollowed symlinks or relative directory entries. Or it may be fully resolved, it depends on what you give it.
Return values |
---|
Returns the directory’s String path. |
All relative directory entries are removed and symlinks are resolved to their final destination.
Return values |
---|
Returns this directory’s completely resolved String path. |
Determines if the given path (real or symbolic) is inside this directory. This method does not actually check if the path exists, it just checks if the path is under this directory.
Argument | Description |
---|---|
|
The String path to check. |
Return values |
---|
Returns a Boolean whether the given path is inside this directory. |