Companion

object Companion

Properties

Link copied to clipboard
open val type: <Error class: unknown class><File>

Functions

Link copied to clipboard

Creates a #GFile with the given argument from the command line. The value of @arg can be either a URI, an absolute path or a relative path resolved relative to the current working directory. This operation never fails, but the returned object might not support any I/O operation if @arg points to a malformed path.

Link copied to clipboard

Creates a #GFile with the given argument from the command line.

Link copied to clipboard
fun newForPath(path: String): File

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.

Link copied to clipboard
fun newForUri(uri: String): File

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.

Link copied to clipboard
fun parseName(parseName: String): File

Constructs a #GFile with the given @parse_name (i.e. something given by g_file_get_parse_name()). This operation never fails, but the returned object might not support any I/O operation if the @parse_name cannot be parsed.

Link copied to clipboard
fun wrap(pointer: <Error class: unknown class><<Error class: unknown class>>): File