@Override
      public boolean accept(Path p) {
        do {
          String name = p.getName();
          if (name.startsWith("_") || name.startsWith(".")) {
            return false;
          }
        } while ((p = p.getParent()) != null);
        return true;
      }
This works with {@link RemoteIterator} which (potentially) produces all files recursively
so looking for hidden folders must look at whole path, not just the the last part of it as
would be appropriate w/o recursive listing.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java