Sets an attribute in the file with attribute name attribute
to value
.
Some attributes can be unset by setting attribute
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.
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 |
true if the attribute was set, false otherwise. |