```scala
names.exists(absPath.endsWith _)
```