set_attributes_from_info
Description:
public abstract bool set_attributes_from_info (FileInfo info, FileQueryInfoFlags flags, Cancellable? cancellable = null) throws Error
Tries to set all attributes in the FileInfo on the target values, not stopping on the first error.
If there is any error during this operation then throws will be set to the first error. Error on particular fields are flagged by setting the "status" field in the attribute value to g_file_attribute_status_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 g_io_error_cancelled will be returned.
Parameters:
this |
input File |
info |
a FileInfo |
flags | |
cancellable |
optional Cancellable object, null to ignore |
Returns:
false if there was any error, true otherwise. |