def mkdir_p(path):
    try:
        os.makedirs(path)
    except OSError as e:
        if e.errno != errno.EEXIST:
            raise
Create path if it doesn't exist already
dataset/ETHPy150Open basak/glacier-cli/glacier.py/mkdir_p