(cls, dir, mode=None)
wrapper to makedirs
wrapper to makedirs
wrapper to makedirs
def makedirs(cls, dir, mode=None):
        '''wrapper to makedirs'''
        if not os.path.exists(dir):
            # this is done to avoid multiple calls to this function causing
            # a race to make the same directory
            try:
                if mode:
                    os.makedirs(dir, mode)
                else:
                    os.makedirs(dir)
            except OSError as e:
                if e.errno != errno.EEXIST:
                    raise
def makedirs ( cls , dir , mode = None ) : if not os . path . exists ( dir ) : # this is done to avoid multiple calls to this function causing # a race to make the same directory try : if mode : os . makedirs ( dir , mode ) else : os . makedirs ( dir ) except OSError as e : if e . errno != errno . EEXIST : raise