Gio.File::set_attributes_from_info

function vfunc_set_attributes_from_info(info: Gio.FileInfo, flags: Gio.FileQueryInfoFlags, cancellable: Gio.Cancellable): Boolean {
}
  

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

a Gio.FileInfo

flags

Gio.FileQueryInfoFlags

cancellable

optional Gio.Cancellable object, null to ignore

Returns

false if there was any error, true otherwise.