Construct a new file browser model.
Private
_connectionPrivate
_drivePrivate
_filePrivate
_isPrivate
_itemsPrivate
_keyPrivate
_modelPrivate
_pathPrivate
_pathsPrivate
_pendingPrivate
_pendingPrivate
_pollPrivate
_refreshedPrivate
_restoredPrivate
_sessionsPrivate
_statePrivate
_transPrivate
_unloadPrivate
_uploadPrivate
_uploadsReadonly
managerThe document manager instance used by the file browser model.
Protected
translatorThe drive name that gets prepended to the path.
Get the file path changed signal.
Get whether the model is disposed.
Get the current path.
A signal emitted when the path changes.
Get the root path
Get the kernel spec models.
A signal emitted when an upload progresses.
Private
_populatePrivate
_shouldPrivate
_uploadPrivate
_uploadProtected
handleProtected
onHandle a change on the contents manager.
Protected
onRestore the state of the file browser.
The unique ID that is used to construct a state database key.
If false
, the restoration ID will be set but the file
browser state will not be fetched from the state database.
A promise when restoration is complete.
This function will only restore the model once. If it is called multiple times, all subsequent invocations are no-ops.
Upload a File
object.
The File
object to upload.
Optional
path: stringThe directory into which the file should be uploaded; defaults to current directory.
A promise containing the new file contents model.
On Notebook version < 5.1.0, this will fail to upload files that are too big to be sent in one request to the server. On newer versions, or on Jupyter Server, it will ask for confirmation then upload the file in 1 MB chunks.
Create an iterator over the status of all in progress uploads.
An implementation of a file browser model.
Notes
All paths parameters without a leading
'/'
are interpreted as relative to the current directory. Supports'../'
syntax.