Vfs

Entry point for using GIO functionality.

Constructors

this
this(GVfs* gVfs, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

Members

Functions

getFileForPath
FileIF getFileForPath(string path)

Gets a GFile for path.

getFileForUri
FileIF getFileForUri(string uri)

Gets a GFile for uri.

getStruct
void* getStruct()

the main Gtk struct as a void*

getSupportedUriSchemes
string[] getSupportedUriSchemes()

Gets a list of URI schemes supported by vfs.

getVfsStruct
GVfs* getVfsStruct(bool transferOwnership = false)

Get the main Gtk struct

isActive
bool isActive()

Checks if the VFS is active.

parseName
FileIF parseName(string parseName)

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.

registerUriScheme
bool registerUriScheme(string scheme, GVfsFileLookupFunc uriFunc, void* uriData, GDestroyNotify uriDestroy, GVfsFileLookupFunc parseNameFunc, void* parseNameData, GDestroyNotify parseNameDestroy)

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.

unregisterUriScheme
bool unregisterUriScheme(string scheme)

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

Static functions

getDefault
Vfs getDefault()

Gets the default GVfs for the system.

getLocal
Vfs getLocal()

Gets the local GVfs for the system.

getType
GType getType()

Variables

gVfs
GVfs* gVfs;

the main Gtk struct