gio.vfs

Module for [Vfs] class

Types 3

Entry point for using GIO functionality.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Vfs self() nothrowReturns `this`, for use in `with` statements.
VfsGidBuilder builder() static nothrowGet builder for [gio.vfs.Vfs] Returns: New builder object
gio.vfs.Vfs getDefault() static nothrowGets the default #GVfs for the system. Returns: a #GVfs, which will be the local file system #GVfs if no other implementation is available.
gio.vfs.Vfs getLocal() static nothrowGets the local #GVfs for the system. Returns: a #GVfs.
gio.file.File getFileForPath(string path) nothrowGets a #GFile for path.
gio.file.File getFileForUri(string uri) nothrowGets a #GFile for uri.
string[] getSupportedUriSchemes() nothrowGets a list of URI schemes supported by vfs. Returns: a null-terminated array of strings. The returned array belongs to GIO and must not be freed or modified.
bool isActive() nothrowChecks if the VFS is active. Returns: true if construction of the vfs was successful and it is now active.
gio.file.File parseName(string parseName) nothrowThis 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.
bool registerUriScheme(string scheme, gio.types.VfsFileLookupFunc uriFunc = null, gio.types.VfsFileLookupFunc parseNameFunc = null) nothrowRegisters 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, ...
bool unregisterUriScheme(string scheme) nothrowUnregisters the URI handler for scheme previously registered with [gio.vfs.Vfs.registerUriScheme].
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gio.vfs.Vfs

Fluent builder for gio.vfs.Vfs

Methods
Vfs build() nothrowCreate object from builder. Returns: New object