Gio.FileInfo.prototype.get_attribute_as_string

function get_attribute_as_string(attribute: String): String {
    // Gjs wrapper for g_file_info_get_attribute_as_string()
}
  

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

attribute

a file attribute key.

Returns

a UTF-8 string associated with the given attribute. When you're done with the string it must be freed with GLib.free.