Gio.File.prototype.set_attributes_from_info
function set_attributes_from_info(info: Gio.FileInfo, flags: Gio.FileQueryInfoFlags, cancellable: Gio.Cancellable): Boolean { // Gjs wrapper for g_file_set_attributes_from_info() }
Tries to set all attributes in the Gio.FileInfo on the target values, not stopping on the first error.
If there is any error during this operation then @error will be set to the first error. Error on particular fields are flagged by setting the "status" field in the attribute value to Gio.FileAttributeStatus.error_setting, which means you can also detect further errors.
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.
- info
- flags
- cancellable
optional Gio.Cancellable object, null to ignore
- Returns
false if there was any error, true otherwise.