Method

GioFileInfohas_attribute

Declaration

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

Description

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

Return value

Type: gboolean

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