Gio.FileInfo.prototype.has_attribute
function has_attribute(attribute: String): Boolean { // Gjs wrapper for g_file_info_has_attribute() }
Checks if a file info structure has an attribute named attribute.
- attribute
a file attribute key.
- Returns
true if @Ginfo has an attribute named attribute, false otherwise.