PathScope ps3 = new PathScope(false, true, true, Path.create("a/b/")); // match any dir/file under a/b/, but not above
errorCollector.assertTrue(!ps3.accept(Path.create("a/")));
errorCollector.assertTrue(ps3.accept(Path.create("a/b/c/d")));
errorCollector.assertTrue(ps3.accept(Path.create("a/b/c")));
errorCollector.assertTrue(!ps3.accept(Path.create("b/")));
errorCollector.assertTrue(!ps3.accept(Path.create("d/")));
errorCollector.assertTrue(!ps3.accept(Path.create("d/e/")));
// match nested but not direct dir
PathScope ps4 = new PathScope(false, true, false, Path.create("a/b/")); // match any dir/file *deep* under a/b/,
errorCollector.assertTrue(!ps4.accept(Path.create("a/")));