Method
GioFileset_attribute_byte_string
Declaration
gboolean
g_file_set_attribute_byte_string (
GFile* file,
const char* attribute,
const char* value,
GFileQueryInfoFlags flags,
GCancellable* cancellable,
GError** error
)
Description
Sets attribute
of type G_FILE_ATTRIBUTE_TYPE_BYTE_STRING
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 G_IO_ERROR_CANCELLED
will be returned.
Parameters
attribute |
const char* |
A string containing the attribute’s name. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
value |
const char* |
A string containing the attribute’s new value. |
|
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. | |
flags |
GFileQueryInfoFlags |
A |
|
cancellable |
GCancellable |
Optional |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError* , or NULL . |