Construct a new file browser model.
The document manager instance used by the file browser model.
A signal emitted when the file browser model loses connection.
The 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.
A signal emitted when the directory listing is refreshed.
A promise that resolves when the model is first restored.
Get the kernel spec models.
A signal emitted when an upload progresses.
Handle an updated contents model.
Handle a change on the contents manager.
Handle a change to the running sessions.
Populate the model's sessions collection.
Perform the actual upload.
Change directory.
A promise with the contents of the directory.
Dispose of the resources held by the model.
Download a file.
The path of the file to be downloaded.
A promise which resolves when the file has begun downloading.
Create an iterator over the model's items.
A new iterator over the model's items.
Force a refresh of the directory contents.
Restore the state of the file browser.
The unique ID that is used to construct a state database key.
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.
Create an iterator over the active sessions in the directory.
A new iterator over the model's active sessions.
Upload a File
object.
The File
object to upload.
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, it will ask for confirmation then upload the file in 1 MB chunks.
Create an iterator over the status of all in progress uploads.
Generated using TypeDoc
An implementation of a file browser model. The namespace for the
FileBrowserModel
class statics.Notes
All paths parameters without a leading
'/'
are interpreted as relative to the current directory. Supports'../'
syntax.