public static void visitTableStoreFiles(final FileSystem fs, final Path tableDir,
    final StoreFileVisitor visitor) throws IOException {
    List<FileStatus> regions =
      FSUtils.listStatusWithStatusFilter(fs, tableDir, new FSUtils.RegionDirFilter(fs));
    if (regions == null) {
      if (LOG.isTraceEnabled()) {
        LOG.trace("No regions under directory:" + tableDir);
      }
      return;
    }

    for (FileStatus region : regions) {
      visitRegionStoreFiles(fs, region.getPath(), visitor);
    }
  }
Iterate over the table store files
@param fs       {@link FileSystem}
@param tableDir {@link Path} to the table directory
@param visitor  callback object to get the store files
@throws IOException if an error occurred while scanning the directory
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSVisitor.java