public static Path getRegionDirFromTableDir(Path tableDir, RegionInfo region) {
    return getRegionDirFromTableDir(tableDir,
      ServerRegionReplicaUtil.getRegionInfoForFs(region).getEncodedName());
  }
Given a particular table dir, return all the regiondirs inside it, excluding files such as
.tableinfo
@param fs       A file system for the Path
@param tableDir Path to a specific table directory &lt;hbase.rootdir&gt;/&lt;tabledir&gt;
@return List of paths to valid region directories in table dir.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java