}
// If one of configured files is nested under the path, and we shall report parents, accept.
// Note, I don't respect includeDirContent here as with file it's easy to add parent to paths explicitly, if needed.
// (if includeDirContent == .f and includeParentDirs == .f, directory than owns a scope file won't get reported)
for (Path f : files) {
CompareResult cr = f.compareWith(path);
if (cr == Nested || cr == ImmediateChild) {
return true;
}
}
} else {
for (Path f : files) {
if (f.equals(path)) {
return true;
}
}
// if interested in nested/recursive dirs, shall check if supplied file is under any of our configured locations
if (!includeNestedDirs && !includeDirContent) {
return false;
}
for (Path d : dirs) {
CompareResult cr = d.compareWith(path);
if (includeNestedDirs && cr == Parent) {
// file is nested in one of our locations
return true;
}
if (includeDirContent && cr == ImmediateParent) {