File.setAttributeInt64

Sets attribute of type G_FILE_ATTRIBUTE_TYPE_INT64 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.

class File
int
setAttributeInt64

Parameters

attribute string

a string containing the attribute's name.

value long

a guint64 containing the attribute's new value.

flags GFileQueryInfoFlags

a GFileQueryInfoFlags.

cancellable Cancellable

optional GCancellable object, NULL to ignore. [allow-none]

Return Value

Type: int

TRUE if the attribute was successfully set, FALSE otherwise.

Throws

GException on failure.

Meta