FileInfo.getAttributeAsString

string getAttributeAsString(string attribute)

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

Parameters

attributea file attribute key.

Returns

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 [glib.global.gfree].