Gio.FileAttributeMatcher.prototype.matches_only
function matches_only(attribute: String): Boolean { // Gjs wrapper for g_file_attribute_matcher_matches_only() }
Checks if a attribute matcher only matches a given attribute. Always returns false if "*" was used when creating the matcher.
- attribute
a file attribute key.
- Returns
true if the matcher only matches attribute. false otherwise.