Method

GioFileInfoget_attribute_string

Declaration

const char*
g_file_info_get_attribute_string (
  GFileInfo* info,
  const char* attribute
)

Description

Gets the value of a string attribute. If the attribute does not contain a string, NULL will be returned.

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.

Return value

Returns: utf8
 

The contents of the attribute value as a UTF-8 string, or NULL otherwise.

 The data is owned by the instance.
 The return value can be NULL.
 The string is a NUL terminated UTF-8 string.