/* Returns: TRUE if @Ginfo has an attribute named @attribute, FALSE otherwise.  */
gboolean g_file_info_has_attribute(GFileInfo *info, const char *attribute)
/* Returns: TRUE if @Ginfo has an attribute named @attribute, FALSE otherwise.  */
gboolean g_file_info_has_attribute(GFileInfo *info, const char *attribute)
{
  GFileAttributeValue *value;
  g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
  g_return_val_if_fail (attribute != NULL && *attribute != '\0', FALSE);
  value = g_file_info_find_value_by_name (info, attribute);
  return value != NULL;
}