Vfs

open class Vfs(pointer: <Error class: unknown class><<Error class: unknown class>>)

Entry point for using GIO functionality.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gioVfsPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getFileForPath(path: String): File

Gets a #GFile for @path.

Link copied to clipboard
open fun getFileForUri(uri: String): File

Gets a #GFile for @uri.

Link copied to clipboard

Gets a list of URI schemes supported by @vfs.

Link copied to clipboard
open fun isActive(): Boolean

Checks if the VFS is active.

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

This operation never fails, but the returned object might not support any I/O operations if the @parse_name cannot be parsed by the #GVfs module.

Link copied to clipboard
open fun registerUriScheme(scheme: String, uriFunc: VfsFileLookupFunc?, parseNameFunc: VfsFileLookupFunc?): Boolean

Registers @uri_func and @parse_name_func as the #GFile URI and parse name lookup functions for URIs with a scheme matching @scheme. Note that @scheme is registered only within the running application, as opposed to desktop-wide as it happens with GVfs backends.

Link copied to clipboard

Unregisters the URI handler for @scheme previously registered with g_vfs_register_uri_scheme().