Class TogglableHiddenFileBrowserModel

File browser model where hidden files inclusion can be toggled on/off.




_includeHiddenFiles: any

The document manager instance used by the file browser model.

translator: ITranslator


  • get connectionFailure(): ISignal<this, Error>
  • A signal emitted when the file browser model loses connection.

    Returns ISignal<this, Error>

  • get driveName(): string
  • The drive name that gets prepended to the path.

    Returns string

  • get isDisposed(): boolean
  • Get whether the model is disposed.

    Returns boolean

  • get path(): string
  • Get the current path.

    Returns string

  • get pathChanged(): ISignal<this, IChangedArgs<string, string, string>>
  • A signal emitted when the path changes.

    Returns ISignal<this, IChangedArgs<string, string, string>>

  • get refreshed(): ISignal<this, void>
  • A signal emitted when the directory listing is refreshed.

    Returns ISignal<this, void>

  • get restored(): Promise<void>
  • A promise that resolves when the model is first restored.

    Returns Promise<void>

  • get rootPath(): string
  • Get the root path

    Returns string

  • get specs(): ISpecModels
  • Get the kernel spec models.

    Returns ISpecModels


  • Change directory.


    • Optional newValue: string

    Returns Promise<void>

    A promise with the contents of the directory.

  • Dispose of the resources held by the model.

    Returns void

  • Download a file.


    • path: string

      The path of the file to be downloaded.

    Returns Promise<void>

    A promise which resolves when the file has begun downloading.

  • Create an iterator over the model's items filtering hidden files out if necessary.

    Returns IterableIterator<Contents.IModel>

    A new iterator over the model's items.

  • Restore the state of the file browser.


    • id: string

      The unique ID that is used to construct a state database key.

    • Optional populate: boolean

      If false, the restoration ID will be set but the file browser state will not be fetched from the state database.

    Returns Promise<void>

    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.

    Returns IterableIterator<Session.IModel>

    A new iterator over the model's active sessions.

  • Set the inclusion of hidden files. Triggers a model refresh.


    • value: boolean

    Returns void

  • Upload a File object.


    • file: File

      The File object to upload.

    Returns Promise<Contents.IModel>

    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.

Generated using TypeDoc