def ensure_path_exists(path):
    try:
        os.makedirs(path)
    except OSError as e:
        # If the directory already exists, that is fine. Otherwise re-raise.
        if e.errno != os.errno.EEXIST:
            raise
dataset/ETHPy150Open jsocol/jingo-minify/jingo_minify/helpers.py/ensure_path_exists/original