Function glib::filename_from_uri

source ·
pub fn filename_from_uri(uri: &str) -> Result<(PathBuf, Option<GString>), Error>
Expand description

Converts an escaped ASCII-encoded URI to a local filename in the encoding used for filenames.

uri

a uri describing a filename (escaped, encoded in ASCII).

Returns

a newly-allocated string holding the resulting filename, or None on an error.

hostname

Location to store hostname for the URI. If there is no hostname in the URI, None will be stored in this location.