private void internalGet(Path dir, Map<String, TableDescriptor> tds, AtomicBoolean allvisited) {
    TableDescriptor htd = get(CommonFSUtils.getTableName(dir));
    if (htd == null) {
      allvisited.set(false);
    } else {
      tds.put(htd.getTableName().getNameWithNamespaceInclAsString(), htd);
    }
  }
Returns a map from table name to table descriptor for all tables.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java