matches

fun matches(path: Path): Boolean(source)

Returns whether this path matches with path. Note that path will be converted to an absolute path when it isn't one.

For the purpose of matching, a wildcard fragment matches against any other fragment and a recursive wildcard fragment matches against zero or more any other fragments. Non-wildcard fragments match against each other on a basis of equality (==).