parent-instanceGets a <GFile> for path.
Passed: a <GVfs>.
a <GVfs>.
Passed: a file name, as a string.
a string containing a VFS path.
Returned: a <GFile>.
a <GFile>. Free the returned object with
object:unref.
Gets a <GFile> for uri.
This operation never fails, but the returned object might not support any I/O operation if the URI is malformed or if the URI scheme is not supported.
Passed: a <GVfs>.
a#GVfs.
Passed: a string.
a string containing a URI
Returned: a <GFile>.
a <GFile>. Free the returned object with
object:unref.
Gets a list of URI schemes supported by self.
Checks if the VFS is active.
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.
Passed: a <GVfs>.
a <GVfs>.
Passed: a string.
a string to be parsed by the VFS module.
Returned: a <GFile>.
a <GFile> for the given parse-name. Free the
returned object with object:unref.
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.
When a <GFile> is requested with an URI containing
scheme (e.g. through
file-new-for-uri), uri-func will be
called to allow a custom constructor. The implementation of
uri-func should not be blocking, and must not call vfs:register-uri-scheme? or vfs:unregister-uri-scheme?.
When file-parse-name is called with a
parse name obtained from such file, parse-name-func will be called
to allow the <GFile> to be created again. In that
case, it’s responsibility of parse-name-func to make sure the
parse name matches what the custom <GFile>
implementation returned when file:get-parse-name was previously called. The
implementation of parse-name-func should not be blocking, and must
not call vfs:register-uri-scheme?
or vfs:unregister-uri-scheme?.
It’s an error to call this function twice with the same scheme. To
unregister a custom URI scheme, use vfs:unregister-uri-scheme?.
Passed: a <GVfs>.
a <GVfs>
Passed: a string.
an URI scheme, e.g. "http"
Passed, or left out: a procedure, or #f.
See GVfsFileLookupFunc for how it is
called.
Passed, or left out: a procedure, or #f.
See GVfsFileLookupFunc for how it is
called.
Returned: a boolean.
#t if scheme was successfully registered, or #f if a
handler for scheme already exists.
Not passed: guile-gi supplies it.
custom data passed to be passed to uri-func, or #f
Not passed: guile-gi supplies it.
function to be called when unregistering the URI scheme, or when self is disposed, to free the resources used by the URI lookup function
See GDestroyNotify for how it is
called.
Not passed: guile-gi supplies it.
custom data passed to be passed to parse-name-func, or #f
Not passed: guile-gi supplies it.
function to be called when unregistering the URI scheme, or when self is disposed, to free the resources used by the parse name lookup function
See GDestroyNotify for how it is
called.
Unregisters the URI handler for scheme previously registered with
vfs:register-uri-scheme?.
To override it in a new class, give register-type #:vfuncs
`((add-writable-namespaces . ,procedure)). The procedure is called as
(procedure self list).
Passed: the class whose implementation to call:
<GVfs>, or a class that derives from it, or its GType
number.
Passed: a <GVfs>.
Passed: a <GFileAttributeInfoList>.
Gets a <GFile> for path.
To override it in a new class, give register-type #:vfuncs
`((get-file-for-path . ,procedure)). The procedure is called as
(procedure self path) ⇒ %return.
Passed: the class whose implementation to call:
<GVfs>, or a class that derives from it, or its GType
number.
Passed: a <GVfs>.
a <GVfs>.
Passed: a file name, as a string.
a string containing a VFS path.
Returned: a <GFile>.
a <GFile>. Free the returned object with
object:unref.
Gets a <GFile> for uri.
This operation never fails, but the returned object might not support any I/O operation if the URI is malformed or if the URI scheme is not supported.
To override it in a new class, give register-type #:vfuncs
`((get-file-for-uri . ,procedure)). The procedure is called as
(procedure self uri) ⇒ %return.
Passed: the class whose implementation to call:
<GVfs>, or a class that derives from it, or its GType
number.
Passed: a <GVfs>.
a#GVfs.
Passed: a string.
a string containing a URI
Returned: a <GFile>.
a <GFile>. Free the returned object with
object:unref.
Gets a list of URI schemes supported by self.
To override it in a new class, give register-type #:vfuncs
`((get-supported-uri-schemes . ,procedure)). The procedure is called
as (procedure self) ⇒ %return.
Passed: the class whose implementation to call:
<GVfs>, or a class that derives from it, or its GType
number.
Passed: a <GVfs>.
a <GVfs>.
Returned: a vector, each a string.
a #f-terminated array of strings. The returned array belongs to
GIO and must not be freed or modified.
Checks if the VFS is active.
To override it in a new class, give register-type #:vfuncs
`((is-active . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
To override it in a new class, give register-type #:vfuncs
`((local-file-add-info . ,procedure)). The procedure is called as
(procedure self filename device attribute-matcher info cancellable
extra-data free-extra-data).
Passed: the class whose implementation to call:
<GVfs>, or a class that derives from it, or its GType
number.
Passed: a <GVfs>.
Passed: a string.
Passed: an unsigned 64-bit integer.
Passed: a <GFileAttributeMatcher>.
Passed: a <GFileInfo>.
Passed: a <GCancellable>, or #f.
Passed: a foreign pointer, or a bytevector, or #f.
Passed: a procedure.
See GDestroyNotify for how it is
called.
To override it in a new class, give register-type #:vfuncs
`((local-file-moved . ,procedure)). The procedure is called as
(procedure self source dest).
To override it in a new class, give register-type #:vfuncs
`((local-file-removed . ,procedure)). The procedure is called as
(procedure self filename).
To override it in a new class, give register-type #:vfuncs
`((local-file-set-attributes . ,procedure)). The procedure is called
as (procedure self filename info flags cancellable) ⇒ %return.
Passed: the class whose implementation to call:
<GVfs>, or a class that derives from it, or its GType
number.
Passed: a <GVfs>.
Passed: a string.
Passed: a <GFileInfo>.
Passed: a <GFileQueryInfoFlags>, or a
list of its symbols, or one of them.
Passed, or left out: a <GCancellable>, or
#f.
Returned: a boolean.
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.
To override it in a new class, give register-type #:vfuncs
`((parse-name . ,procedure)). The procedure is called as
(procedure self parse-name) ⇒ %return.
Passed: the class whose implementation to call:
<GVfs>, or a class that derives from it, or its GType
number.
Passed: a <GVfs>.
a <GVfs>.
Passed: a string.
a string to be parsed by the VFS module.
Returned: a <GFile>.
a <GFile> for the given parse-name. Free the
returned object with object:unref.