contains

operator fun contains(path: Path): Boolean(source)

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

We say that a path p1 contains a path p2 when all paths that match against p2 also match against p1. I.e. p1.contains(p2) == true iff there does not exist a path p3 such that p3.matches(p2) == true and p3.matches(p1) == false.