Method

GioFileInfoset_attribute_status

Declaration

gboolean
g_file_info_set_attribute_status (
  GFileInfo* info,
  const char* attribute,
  GFileAttributeStatus status
)

Description

Sets the attribute status for an attribute key. This is only needed by external code that implement g_file_set_attributes_from_info() or similar functions.

The attribute must exist in info for this to work. Otherwise FALSE is returned and info is unchanged.

Available since:2.22

Parameters

attribute const char*
 

A file attribute key.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
status GFileAttributeStatus
 

A GFileAttributeStatus.

Return value

Returns: gboolean
 

TRUE if the status was changed, FALSE if the key was not set.