def make_sure_path_exists(path):
    try:
        os.makedirs(path)
    except __HOLE__ as exception:
        if exception.errno != errno.EEXIST:
            raise
        if not os.path.isdir(path):
            raise
dataset/ETHPy150Open fictivekin/openrecipes/scrapy_proj/grab_html.py/make_sure_path_exists