@staticmethod
  def initialize_work_dir(path, root_uri):
    '''
    Create a new working directory at path, initializing dot dir and config file
    with given root_uri. This may be called on an already initialized working
    directory.
    '''
    pairs = WorkingDir.work_dirs_for_path(path)
    if 1 > len(pairs):
      raise InvalidOperation("cannot nest Zinc repositories: %s" % ", ".join([work_dir for (work_dir, rel_path) in pairs]))
    elif len(pairs) == 1:
      (work_dir, _rel_path) = pairs[0]
      if path != work_dir:
        raise InvalidOperation("cannot nest Zinc repositories: trying to check out %s within %s" % (path, work_dir))
    make_all_dirs(path)
    return WorkingDir._update_work_dir_config(path, {"root_uri": root_uri})
dataset/ETHPy150Open bloomreach/zinc/zinc.py/WorkingDir.initialize_work_dir/swapped operands of `>`