public static Path getRegionArchiveDir(Configuration conf, HRegion region) throws IOException {
    return HFileArchiveUtil.getRegionArchiveDir(CommonFSUtils.getRootDir(conf),
      region.getTableDescriptor().getTableName(), region.getRegionInfo().getEncodedName());
  }
Helper method to get the archive directory for the specified region
@param conf   {@link Configuration} to check for the name of the archive directory
@param region region that is being archived
@return {@link Path} to the archive directory for the given region
hbase-server/src/test/java/org/apache/hadoop/hbase/util/HFileArchiveTestingUtil.java