code: def _makeBaseDir(basedir, quiet):
      
      if os.path.exists(basedir):
          if not quiet:
              print("updating existing installation")
          return
  
      if not quiet:
          print("mkdir", basedir)
  
      try:
          os.mkdir(basedir)
      except OSError as exception:
          raise CreateWorkerError("error creating directory {0}: {1}".format(
                                  basedir, exception.strerror))
docs: Make worker base directory if needed.
  
      @param basedir: worker base directory relative path
      @param   quiet: if True, don't print info messages
  
      @raise CreateWorkerError: on error making base directory