/* Returns: a #GFileAttributeType for the given @attribute, or G_FILE_ATTRIBUTE_TYPE_INVALID if the key is not set.  */
GFileAttributeType g_file_info_get_attribute_type(GFileInfo *info, const char *attribute)
/* Returns: a #GFileAttributeType for the given @attribute, or G_FILE_ATTRIBUTE_TYPE_INVALID if the key is not set.  */
GFileAttributeType g_file_info_get_attribute_type(GFileInfo *info, const char *attribute)
{
  GFileAttributeValue *value;
  g_return_val_if_fail (G_IS_FILE_INFO (info), G_FILE_ATTRIBUTE_TYPE_INVALID);
  g_return_val_if_fail (attribute != NULL && *attribute != '\0', G_FILE_ATTRIBUTE_TYPE_INVALID);
  value = g_file_info_find_value_by_name (info, attribute);
  if (value)
    return value->type;
  else
    return G_FILE_ATTRIBUTE_TYPE_INVALID;
}