en | fr

The FilePicker class


Wrapper around Electron’s dialog to choose files that are stored on disk.


open

Opens up a dialog to pick a file or a directory.

If the kind argument is ‘directory’, then the user can only pick a directory. If the kind argument is ‘picture’, then the user can only pick a single file which has either the .jpeg, .jpg or .png extension.

Parameters

Returns null