get_current_folder_uri


Description:

[ Version ( since = "2.4" ) ]
public string? get_current_folder_uri ()

Gets the current folder of this as an URI.

See 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 not the same as the currently-selected folder if the chooser is in gtk_file_chooser_action_select_folder mode ( e.g. "file:///home/username/Documents/selected-folder/". To get the currently-selected folder in that mode, use get_uri as the usual way to get the selection.

Parameters:

this

a FileChooser

Returns:

the URI for the current folder. Free with g_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 set_current_folder_uri on a nonexistent folder.




2022 vala-language.org