Construct a new file browser view model.
Get the file path changed signal.
Get whether the view model is disposed.
Get a the list of available kernel specs.
This is a read-only property.
Get the file open requested signal.
Get the current path.
This is a read-only property.
Get the refreshed signal.
Get the selection changed signal.
Get the session ids for active notebooks.
This is a read-only property.
Get whether the items are sorted in ascending order.
Set whether the items are sorted in ascending order.
Get which key the items are sorted on.
Set which key the items are sorted on.
Get the sorted list of items.
This is a read-only property and should be treated as immutable.
Get the notebook sessions for the current directory.
Load the list of kernel specs.
Sort the model items.
Perform the actual upload.
Change directory.
The path to the file or directory.
A promise with the contents of the directory.
Clear the selected items.
Copy a file.
The path of the original file.
The path to the target directory.
A promise which resolves to the contents of the file.
Delete a file.
A promise which resolves when the file is deleted.
De-select an item by name.
This is a no-op if the name is not valid or not selected.
Dispose of the resources held by the view model.
Download a file.
Get the list of selected names.
Check whether an item is selected.
Returns true
for a valid name that is selected, false
otherwise.
Create a new untitled file or directory in the current directory.
The type of file object to create. One of
['file', 'notebook', 'directory']
.
Optional extension for 'file'
types (defaults to '.txt'
).
A promise containing the new file contents model.
Open a file in the current by name.
Refresh the current directory.
Rename a file or directory.
The path to the original file.
The path to the new file.
A promise containing the new file contents model.
Select an item by name.
This is a no-op if the name is not valid or already selected.
Shut down a notebook session by session id.
Start a new session on a notebook.
Upload a File
object.
The File
object to upload.
Whether to overwrite an existing file.
A promise containing the new file contents model.
This will fail to upload files that are too big to be sent in one request to the server.
Generated using TypeDoc
An implementation of a file browser view model.
Notes
All paths parameters without a leading
'/'
are interpreted as relative to the current directory. Supports'../'
syntax.