Gio.FileAttributeMatcher.matches_only

### Method

# Gio FileAttributeMatchermatches_only

#### Declaration [src]

    gboolean
    g_file_attribute_matcher_matches_only (
      GFileAttributeMatcher* matcher,
      const char* attribute
    )

#### Description [src]

Checks if an attribute matcher only matches a given attribute. Always returns `FALSE` if “*” was used when creating the matcher.

#### 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 the matcher only matches `attribute`. `FALSE` otherwise.