@Override
    public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) {
      countDirectory(dir, attrs);
      if (attrs.isSymbolicLink() || SystemInfoRt.isWindows && attrs.isOther() /*probably an NTFS reparse point*/) {
        return FileVisitResult.SKIP_SUBTREE;
      }
      else {
        return FileVisitResult.CONTINUE;
      }
    }
@Override
    public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs)