setAttribute
open fun setAttribute(attribute: String, type: FileAttributeType, valueP: <Error class: unknown class>? = null, flags: FileQueryInfoFlags, cancellable: Cancellable? = null): <Error class: unknown class><Boolean>
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.
Return
true if the attribute was set, false otherwise.
Parameters
attribute
a string containing the attribute's name
type
The type of the attribute
valueP
a pointer to the value (or the pointer itself if the type is a pointer type)
flags
a set of #GFileQueryInfoFlags
cancellable
optional #GCancellable object, null to ignore