Gtk.FileChooser.prototype.get_uri
function get_uri():String { // Gjs wrapper for gtk_file_chooser_get_uri() }
Gets the URI for the currently selected file in the file selector. If multiple files are selected, one of the filenames will be returned at random.
If the file chooser is in folder mode, this function returns the selected folder.
Since 2.4
- Returns
The currently selected URI, or null if no file is selected. If Gtk.set_local_only is set to true (the default) a local URI will be returned for any FUSE locations. Free with GLib.free