Gio.File.new_for_uri
function new_for_uri(uri: String): Gio.File {
// Gjs wrapper for g_file_new_for_uri()
}
Constructs a Gio.File for a given URI. This operation never fails, but the returned object might not support any I/O operation if uri is malformed or if the uri type is not supported.
- uri
a UTF-8 string containing a URI
- Returns
a new Gio.File for the given uri. Free the returned object with GObject.Object.prototype.unref.