class MetastoreClientUtils {

  public static boolean makeDirs(Warehouse wh, Path path) throws MetaException {
    checkNotNull(wh, "Warehouse cannot be null");
    checkNotNull(path, "Path cannot be null");

    boolean madeDir = false;
    if (!wh.isDir(path)) {
      if (!wh.mkdirs(path, true)) {
        throw new MetaException("Unable to create path: " + path);
      }
      madeDir = true;
    }
    return madeDir;
  }

  private  MetastoreClientUtils();

}