File.newForUri

Constructs a #GFile 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.

interface File
static
newForUri
(
string uri
)

Parameters

uri string

a UTF-8 string containing a URI

Return Value

Type: gio.file.File

a new #GFile for the given uri. Free the returned object with gobject.object.ObjectG.unref.