Gtk.FileChooser.prototype.get_current_folder_uri
function get_current_folder_uri():String { // Gjs wrapper for gtk_file_chooser_get_current_folder_uri() }
Gets the current folder of chooser as an URI. See Gtk.set_current_folder_uri.
Note that this is the folder that the file chooser is currently displaying (e.g. "file:///home/username/Documents"), which is <emphasis>not the same</emphasis> as the currently-selected folder if the chooser is in Gtk.FileChooserAction.select_folder mode (e.g. "file:///home/username/Documents/selected-folder/". To get the currently-selected folder in that mode, use Gtk.get_uri as the usual way to get the selection.
Since 2.4
- Returns
the URI for the current folder. Free with GLib.free. This function will also return null if the file chooser was unable to load the last folder that was requested from it; for example, as would be for calling Gtk.set_current_folder_uri on a nonexistent folder.