@Override
    public boolean accept(Path p) {
      String name = p.getName();
      return !name.startsWith("_") && !name.startsWith(".");
    }
Collection of file manipulation utilities common across Hive.
common/src/java/org/apache/hadoop/hive/common/FileUtils.java