FileT.setAttributeUint32

Sets attribute of type G_FILE_ATTRIBUTE_TYPE_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 G_IO_ERROR_CANCELLED will be returned.

template FileT(TStruct)
bool
setAttributeUint32

Parameters

attribute string

a string containing the attribute's name

value uint

a guint32 containing the attribute's new value

flags GFileQueryInfoFlags
cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

Return Value

Type: bool

TRUE if the attribute was successfully set to value in the file, FALSE otherwise.

Throws

GException on failure.