public static void makeDir(Path path, Configuration conf) throws MetaException {
    FileSystem fs;
    try {
      fs = path.getFileSystem(conf);
      if (!fs.exists(path)) {
        fs.mkdirs(path);
      }
    } catch (IOException e) {
      throw new MetaException("Unable to : " + path);
    }
  }
Check if the path contains a subdirectory named '.snapshot'
@param p path to check
@param fs filesystem of the path
@return true if p contains a subdirectory named '.snapshot'
@throws IOException
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/FileUtils.java