(path)
Make sure the directory for |path| exists.
Make sure the directory for |path| exists.
Make sure the directory for |path| exists .
def EnsureDirExists(path):
  """Make sure the directory for |path| exists."""
  try:
    os.makedirs(os.path.dirname(path))
  except OSError:
    pass
def EnsureDirExists ( path ) : try : os . makedirs ( os . path . dirname ( path ) ) except OSError : pass