Private
_apiPrivate
_filePrivate
_isReadonly
nameThe name of the drive, which is used at the leading component of file paths.
Readonly
serverThe server settings of the drive.
A signal emitted when a file operation takes place.
Test whether the manager has been disposed.
Private
_getCopy a file into a given directory.
The destination directory path.
A promise which resolves with the new contents model when the file is copied.
The server will select the name of the copied file.
Uses the Jupyter Server API and validates the response model.
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.
Uses the Jupyter Server API and validates the response model.
Delete a file.
The path to the file.
A promise which resolves when the file is deleted.
Uses the Jupyter Server API.
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.
Uses the Jupyter Server API.
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.
Uses the Jupyter Server API and validates the response model.
List available checkpoints for a file.
The path of the file.
A promise which resolves with a list of checkpoint models for the file.
Uses the Jupyter Server API and validates the response model.
Create a new untitled file or directory in the specified directory path.
The options used to create the file.
A promise which resolves with the created file content when the file is created.
Uses the Jupyter Server API and validates the response model.
Rename a file or directory.
The original file path.
The new file path.
A promise which resolves with the new file contents model when the file is renamed.
Uses the Jupyter Server API and validates the response model.
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.
Uses the Jupyter Server API.
Save a file.
A promise which resolves with the file content model when the file is saved.
Ensure that model.content
is populated for the file.
Uses the Jupyter Server API and validates the response model.
A default implementation for an
IDrive
, talking to the server using the Jupyter REST API.