SphereFS path of the directory to create.
Delete a file from the file system. The SphereFS prefix must be writable.
SphereFS path of the file to delete.
Get a Boolean value indicating whether a directory exists.
SphereFS path of the directory to check for existence.
Get the directory component of a path, stripping the filename if present.
SphereFS or relative path of a file or directory. It doesn't need to exist.
Evaluate a JavaScript script file (.js
) as traditional code (not as a module).
SphereFS path of the script file to execute.
Get the filename extension (everything after the last .
) from a file path.
SphereFS or relative path of a file. The file need not exist.
The extension starting with the last .
, or null
if the path has no extension.
Get a Boolean value indicating whether a file exists.
SphereFS path of the file to check for existence.
Get the filename component from a file path, stripping any directory information if present.
SphereFS or relative path of a file. The file need not exist.
The filename component of the path, or undefined
if the path names a known
directory and/or ends in a slash.
Get the full, canonical SphereFS path of a given path or filename.
The filename or path to be interpreted.
SphereFS path of the base directory (used to resolve relative paths).
Get an abbreviated version of a full SphereFS path by finding its path relative to a given base directory.
A full SphereFS path to be abbreviated.
SphereFS path of the base directory for the relative path.
Remove an empty directory from the file system. The SphereFS prefix must be writable.
SphereFS path of the directory to remove.
Rename a file or directory or move it to a new location. The source and target prefixes must be writable.
SphereFS path of the file to rename or move.
The new SphereFS path of the file.
Generated using TypeDoc
Create a directory if it doesn't already exist. If it already exists, nothing happens.