code: public boolean matches(String path) {
          List<String> segments;
  
          segments = Filesystem.SEPARATOR.split(path);
          if (segments.size() < minDepth || segments.size() > maxDepth) {
              return false;
          }
          if (predicates.size() > 0) {
              throw new UnsupportedOperationException("cannot match with predicates");
          }
          return matches(0, segments, new ArrayList<>(includes), new ArrayList<>(excludes));
      }
docs: Tests includes an excludes. CAUTION: does not support checks that need a node (like predicates). Ignores "followSymlinks"