matches

fun matches(attribute: String): Boolean

Checks if an attribute will be matched by an attribute matcher. If the matcher was created with the "*" matching string, this function will always return true.

Return

true if @attribute matches @matcher. false otherwise.

Parameters

attribute

a file attribute key.