Companion

object Companion

Properties

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

Functions

Link copied to clipboard

Constructs a #GFile from a vector of elements using the correct separator for filenames.

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 newTmpAsync(tmpl: String? = null, ioPriority: Int, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

Asynchronously opens a file in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_file_new_tmp().

Link copied to clipboard
fun newTmpDirAsync(tmpl: String? = null, ioPriority: Int, cancellable: Cancellable? = null, callback: AsyncReadyCallback)

Asynchronously creates a directory in the preferred directory for temporary files (as returned by g_get_tmp_dir()) as g_dir_make_tmp().

Link copied to clipboard
fun newTmpDirFinish(result: AsyncResult): <Error class: unknown class><File>

Finishes a temporary directory creation started by g_file_new_tmp_dir_async().

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