set_attribute
Description:
public abstract bool set_attribute (string attribute, FileAttributeType type, void* value_p, FileQueryInfoFlags flags, Cancellable? cancellable = null) throws Error
Sets an attribute in the file with attribute name attribute
to value_p
.
Some attributes can be unset by setting type
to g_file_attribute_type_invalid and value_p
to null.
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 |
attribute |
a string containing the attribute's name |
type |
The type of the attribute |
value_p |
a pointer to the value (or the pointer itself if the type is a pointer type) |
flags |
a set of FileQueryInfoFlags |
cancellable |
optional Cancellable object, null to ignore |
Returns:
true if the attribute was set, false otherwise. |