Gio.File.prototype.query_writable_namespaces
function query_writable_namespaces(cancellable: Gio.Cancellable): Gio.FileAttributeInfoList { // Gjs wrapper for g_file_query_writable_namespaces() }
Obtain the list of attribute namespaces where new attributes can be created by a user. An example of this is extended attributes (in the "xattr" namespace).
If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error Gio.IOErrorEnum.cancelled will be returned.
- cancellable
optional Gio.Cancellable object, null to ignore
- Returns
a Gio.FileAttributeInfoList describing the writable namespaces. When you are done with it, release it with Gio.FileAttributeInfoList.prototype.unref