A signal emitted when a file operation takes place.
The server settings associated with the manager.
Add an IDrive
to the manager.
Copy a file into a given directory.
The original file path.
The destination directory path.
A promise which resolves with the new content model when the file is copied.
Create a checkpoint for a file.
The path of the file.
A promise which resolves with the new checkpoint model when the checkpoint is created.
Delete a file.
The path to the file.
A promise which resolves when the file is deleted.
Delete a checkpoint for a file.
The path of the file.
The id of the checkpoint to delete.
A promise which resolves when the checkpoint is deleted.
Dispose of the resources held by the object.
If the object's dispose
method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
Given a path of the form drive:local/portion/of/it.txt
get the name of the drive. If the path is missing
a drive portion, returns an empty string.
The drive name for the path, or the empty string.
Get a file or directory.
A promise which resolves with the file content.
Get an encoded download url given a file path.
Given a path, get a ModelDB.IFactory from the
relevant backend. Returns null
if the backend
does not provide one.
List available checkpoints for a file.
The path of the file.
A promise which resolves with a list of checkpoint models for the file.
Given a path of the form drive:local/portion/of/it.txt
get the local part of it.
The local part of the path.
Create a new untitled file or directory in the specified directory path.
A promise which resolves with the created file content when the file is created.
Normalize a global path. Reduces '..' and '.' parts, and removes leading slashes from the local part of the path, while retaining the drive name if it exists.
The normalized path.
Rename a file or directory.
The original file path.
The new file path.
A promise which resolves with the new file content model when the file is renamed.
Resolve a global path, starting from the root path. Behaves like posix-path.resolve, with 3 differences:
The normalized path.
Restore a file to a known checkpoint state.
The path of the file.
The id of the checkpoint to restore.
A promise which resolves when the checkpoint is restored.
Generated using TypeDoc
The interface for a contents manager.