private List<String> getAllFileNames(final FileSystem fs, Path archiveDir) throws IOException {
    FileStatus[] files = CommonFSUtils.listStatus(fs, archiveDir, new PathFilter() {
      @Override
      public boolean accept(Path p) {
        if (p.getName().contains(HConstants.RECOVERED_EDITS_DIR)) {
          return false;
        }
        return true;
      }
    });
    return recurseOnFiles(fs, files, new ArrayList<>());
  }
Get the names of all the files below the given directory
@param fs         the file system to inspect
@param archiveDir the directory in which to look
@return a list of all files in the directory and sub-directories
@throws java.io.IOException throws IOException in case FS is unavailable
hbase-server/src/test/java/org/apache/hadoop/hbase/backup/TestHFileArchiving.java