public static TableDescriptor getTableDescriptorFromFs(FileSystem fs, Path tableDir)
    throws IOException {
    return getTableDescriptorFromFs(fs, tableDir, true).map(Pair::getSecond).orElse(null);
  }
Returns the latest table descriptor for the table located at the given directory directly from
the file system if it exists.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java