Optional
Readonly
contentAn optional content provider registry, consisting of all the content providers that this drive can use to access files.
A signal emitted when a file operation takes place.
Readonly
isReadonly
nameThe name of the drive, which is used at the leading component of file paths.
Readonly
serverThe server settings of the manager.
Optional
Readonly
sharedAn optional shared model factory instance for the drive.
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.
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.
Get a file or directory.
The path to the file.
Optional
options: IFetchOptionsThe options used to fetch the file.
A promise which resolves with the file content.
List available checkpoints for a file.
The path of the file.
A promise which resolves with a list of checkpoint models for the file.
Create a new untitled file or directory in the specified directory path.
Optional
options: Contents.ICreateOptionsThe options used to create the file.
A promise which resolves with the created file content when the file is created.
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.
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.
The interface for a network drive that can be mounted in the contents manager.