def makedirs(path):
  """ Creates a dir with the given path and all directories in between.

  Args:
    path: A str, the name of the dir to create.
  Returns:
    True on success, False otherwise.
  """
  try:
    os.makedirs(path)
  except __HOLE__:
    logging.error("OSError while creating dir '{0}'".format(path))
    return False
  return True
dataset/ETHPy150Open AppScale/appscale/AppDB/backup/backup_recovery_helper.py/makedirs