private static void buildListingForDirectory(ArrayList<String> listing, Path tableLocation, FileSystem tableFs)
      throws IOException {
    if (!tableFs.exists(tableLocation)) {
      return;
    }
    RemoteIterator<FileStatus> itr = tableFs.listStatusIterator(tableLocation);
    while (itr.hasNext()) {
      FileStatus fstatus = itr.next();
      if (fstatus.isDirectory()) {
        listing.add(fstatus.getPath().toString());
        buildListingForDirectory(listing, fstatus.getPath(), tableFs);
      } else {
        listing.add(fstatus.getPath() + FILE_ENTRY_SEPARATOR + fstatus.getLen() + FILE_ENTRY_SEPARATOR + tableFs
            .getFileChecksum(fstatus.getPath()));
      }
    }
  }
Gets the list of tables for the second load of optimised bootstrap from the BOOTSTRAP_TABLE_LIST in the dump
directory.
@param dumpPath the dump path
@param conf the hive configuration
@return the array with list of tables to bootstrap
@throws IOException in case of any exception.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/OptimisedBootstrapUtils.java