parameters: (path)
docstring: os.path.makedirs without EEXIST.
docstring_summary: os.path.makedirs without EEXIST.
docstring_tokens: os . path . makedirs without EEXIST .
function: def ensure_dir(path):
  
      # type: (AnyStr) -> None
  
      """os.path.makedirs without EEXIST."""
  
      try:
  
          os.makedirs(path)
  
      except OSError as e:
  
          # Windows can raise spurious ENOTEMPTY errors. See #6426.
  
          if e.errno != errno.EEXIST and e.errno != errno.ENOTEMPTY:
  
              raise
function_tokens: def ensure_dir ( path ) : # type: (AnyStr) -> None try : os . makedirs ( path ) except OSError as e : # Windows can raise spurious ENOTEMPTY errors. See #6426. if e . errno != errno . EEXIST and e . errno != errno . ENOTEMPTY : raise