(path)
Create a directory, exit on failure
Create a directory, exit on failure
Create a directory exit on failure
def must_mkdir(path):
        '''Create a directory, exit on failure'''
        if os.path.exists(path):
            return
        try:
            os.mkdir(path)
        except OSError, e:
            Utils.error('failed to create directory %s:%s' % (path, e))
def must_mkdir ( path ) : if os . path . exists ( path ) : return try : os . mkdir ( path ) except OSError , e : Utils . error ( 'failed to create directory %s:%s' % ( path , e ) )