FileBrowserModel | @jupyterlab (original) (raw)
Hierarchy (View Summary)
- FileBrowserModel
Implements
Index
Constructors
constructor
- new FileBrowserModel(options: FileBrowserModel.IOptions): FileBrowserModel
FileBrowserModel
Returns
Properties
Readonly
manager
Protected
translator
Accessors
connectionFailure
driveName
- get driveName(): string
Returns string
fileChanged
- get fileChanged(): ISignal<this, Contents.IChangedArgs>
ISignal<this, Contents.IChangedArgs>
Returns
isDisposed
- get isDisposed(): boolean
Returns boolean
path
- get path(): string
Returns string
pathChanged
- get pathChanged(): ISignal<this, IChangedArgs<string, string, string>>
ISignal<this, IChangedArgs<string, string, string>>
Returns
refreshed
restored
rootPath
- get rootPath(): string
Returns string
specs
- get specs(): null | KernelSpec.ISpecModels
KernelSpec.ISpecModels
Returns null |
uploadChanged
- get uploadChanged(): ISignal<
this,
IChangedArgs<null | IUploadModel, null | IUploadModel, string>,
> ISignal<this, IChangedArgs<null | IUploadModel, null | IUploadModel, string>>
Returns
Methods
cd
- cd(path?: string): Promise<void>
Parameters
- path: string = '.'
Returns Promise<void>
A promise with the contents of the directory.
dispose
- dispose(): void
Returns void
download
A promise which resolves when the file has begun downloading.
Protected
handleContents
items
A new iterator over the model's items.
Protected
onFileChanged
- onFileChanged(sender: Contents.IManager, change: Contents.IChangedArgs): void
Returns void
Protected
onRunningChanged
refresh
restore
- restore(id: string, populate?: boolean): Promise<void>
Parameters
- id: string
- populate: boolean = true
Returns Promise<void>
A promise when restoration is complete.
Notes
This function will only restore the model once. If it is called multiple times, all subsequent invocations are no-ops.
sessions
A new iterator over the model's active sessions.
upload
- upload(file: File, path?: string): Promise<Contents.IModel>
Parameters
- file: File
Optional
path: string
Returns Promise<Contents.IModel>
A promise containing the new file contents model.
Notes
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.
uploads
- uploads(): IterableIterator<IUploadModel>
IUploadModel>
Returns IterableIterator<