public static List<Path> getStoreFiles(FileSystem fs, Path regionDir) throws IOException {
    List<Path> regionHFiles = new ArrayList<>();
    PathFilter dirFilter = new FSUtils.DirFilter(fs);
    FileStatus[] familyDirs = fs.listStatus(regionDir, dirFilter);
    for (FileStatus dir : familyDirs) {
      FileStatus[] files = fs.listStatus(dir.getPath());
      for (FileStatus file : files) {
        if (
          !file.isDirectory()
            && (!file.getPath().toString().contains(HConstants.HREGION_OLDLOGDIR_NAME))
            && (!file.getPath().toString().contains(HConstants.RECOVERED_EDITS_DIR))
        ) {
          regionHFiles.add(file.getPath());
        }
      }
    }
    return regionHFiles;
  }
Returns all HFiles belonging to the given region directory. Could return an empty list.
@param fs        The file system reference.
@param regionDir The region directory to scan.
@return The list of files found.
@throws IOException When scanning the files fails.
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java