def makedirs(path, mode=0o777):
    try:
        os.makedirs(path, mode)
        return True
    except OSError as e:
        if e.errno != errno.EEXIST:
            # We don't want to swallow errors other than EEXIST,
            # because we could be obscuring a real problem.
            raise
        return False
Create a directory if it doesn't already exist (keeping concurrency in mind).
dataset/ETHPy150Open paylogic/pip-accel/pip_accel/utils.py/makedirs