in the file, false otherwise.
File.setAttributeByteString
bool setAttributeByteString(string attribute, string value, gio.types.FileQueryInfoFlags flags, gio.cancellable.Cancellable cancellable = null)Sets attribute of type [gio.types.FileAttributeType.ByteString] to value. If attribute is of a different type, this operation will fail, returning false.
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.types.IOErrorEnum.Cancelled] will be returned.
Parameters
attribute | a string containing the attribute's name |
value | a string containing the attribute's new value |
flags | a #GFileQueryInfoFlags |
cancellable | optional #GCancellable object, null to ignore |
Returns
true if the attribute was successfully set to value
Throws
[ErrorWrap]