Gio.File.prototype.set_attribute_uint32
function set_attribute_uint32(attribute: String, value: Number(guint32), flags: Gio.FileQueryInfoFlags, cancellable: Gio.Cancellable): Boolean { // Gjs wrapper for g_file_set_attribute_uint32() }
Sets attribute of type Gio.FileAttributeType.uint32 to value. If attribute is of a different type, this operation will fail.
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.IOErrorEnum.cancelled will be returned.
- attribute
a string containing the attribute's name
- value
a #guint32 containing the attribute's new value
- flags
- cancellable
optional Gio.Cancellable object, null to ignore
- Returns
true if the attribute was successfully set to value in the file, false otherwise.