def mkdir_p(path):
    """Emulates `mkdir -p` behavior."""
    try:
        makedirs(path)
    except __HOLE__ as exc: # Python >2.5
        if exc.errno == errno.EEXIST:
            pass
        else:
            raise
dataset/ETHPy150Open kennethreitz/clint/clint/utils.py/mkdir_p