Method

GioFileAttributeMatchermatches_only

Declaration

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

Description

Checks if a 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 function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if the matcher only matches attribute. FALSE otherwise.