/* Returns: a UTF-8 string associated with the given @attribute. When you're done with the string it must be freed with g_free().  */
char* g_file_info_get_attribute_as_string(GFileInfo *info, const char *attribute)
/* Returns: a UTF-8 string associated with the given @attribute. When you're done with the string it must be freed with g_free().  */
char* g_file_info_get_attribute_as_string(GFileInfo *info, const char *attribute)
{
  GFileAttributeValue *val;
  val = _g_file_info_get_attribute_value (info, attribute);
  if (val)
    return _g_file_attribute_value_as_string (val);
  return NULL;
}