FileManager (from List)

A very simple file manager for selecting files.

Options

  • Inherits all from List.
  • cwd - Current working directory.

Properties

  • Inherits all from List.
  • cwd - Current working directory.

Events

  • Inherits all from List.
  • cd - Directory was selected and navigated to.
  • file - File was selected.

Methods

  • Inherits all from List.
  • refresh([cwd], [callback]) - Refresh the file list (perform a readdir on cwd and update the list items).
  • pick([cwd], callback) - Pick a single file and return the path in the callback.
  • reset([cwd], [callback]) - Reset back to original cwd.

Last update: February 22, 2020