def mkdir_p(path):
    try:
        os.makedirs(path)
    except OSError as e:
        if e.errno == errno.EEXIST and os.path.isdir(path):
            pass
        else:
            raise
Create potentially nested directories as required.
dataset/ETHPy150Open radhermit/vimball/vimball/base.py/mkdir_p