FilePickerFilePicker classWrapper around Electron’s dialog to choose files that are stored on disk.
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
kind String The kind of dialog to open.callback Function The callback to call once the
file/folder has been chosen.Returns null