def _mkdir_p(path):
    try:
        os.makedirs(path)
    except OSError as exc:
        if exc.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else:
            raise
Creates all non-existing directories encountered in the passed in path
dataset/ETHPy150Open jmagnusson/Flask-Resize/flask_resize/__init__.py/_mkdir_p