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