Gio.FileInfo.has_attribute

### Method

# Gio FileInfohas_attribute

#### Declaration [src]

    gboolean
    g_file_info_has_attribute (
      GFileInfo* info,
      const char* attribute
    )

#### Description [src]

Checks if a file info structure has an attribute named `attribute`.

#### Parameters

`attribute`

  Type: `const char*`

  A file attribute key.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `gboolean`

`TRUE` if `info` has an attribute named `attribute`, `FALSE` otherwise.