FileInfo.getAttributeAsString

Gets the value of a attribute, formated as a string. This escapes things as needed to make the string valid UTF-8.

class FileInfo
string
getAttributeAsString
(
string attribute
)

Parameters

attribute string

a file attribute key.

Return Value

Type: string

a UTF-8 string associated with the given attribute, or NULL if the attribute wasn’t set. When you're done with the string it must be freed with g_free().