Gtk.FileChooser.prototype.get_file
function get_file():Gio.File { // Gjs wrapper for gtk_file_chooser_get_file() }
Gets the Gio.File for the currently selected file in the file selector. If multiple files are selected, one of the files will be returned at random.
If the file chooser is in folder mode, this function returns the selected folder.
Since 2.14
- Returns
a selected Gio.File. You own the returned file; use GObject.unref to release it.