def EnsureDirExists(path):
  try:
    os.makedirs(os.path.dirname(path))
  except OSError:
    pass
Make sure the directory for |path| exists.
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/common.py/EnsureDirExists