File.newForPath

Constructs a #GFile for a given path. This operation never fails, but the returned object might not support any I/O operation if path is malformed.

interface File
static
newForPath
(
string path
)

Parameters

path string

a string containing a relative or absolute path. The string must be encoded in the glib filename encoding.

Return Value

Type: gio.file.File

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