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 const char*
 

A file attribute key.

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

Return value

Returns: gboolean
 

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