Gio.File.new_for_path
function new_for_path(path: String): Gio.File {
// Gjs wrapper for g_file_new_for_path()
}
Constructs a Gio.File for a given path. This operation never fails, but the returned object might not support any I/O operation if path is malformed.
- path
a string containing a relative or absolute path. The string must be encoded in the glib filename encoding.
- Returns
a new Gio.File for the given path. Free the returned object with GObject.Object.prototype.unref.