static Path getInterMediateDir(Path dir, Configuration conf, ConfVars suffixConfig) {
    String intermediateDirSuffix = HiveConf.getVar(conf, suffixConfig);
    return new Path(dir.getParent(), dir.getName() + intermediateDirSuffix);
  }
Checks in partition is in custom (not-standard) location.
@param table - table in which partition is
@param partition - partition
@return true if partition location is custom, false if it is standard
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/archive/AlterTableArchiveUtils.java