#NEWLINE# def make_sure_path_exists( path ) : #NEWLINE# #INDENT# logging . debug ( 'Make sure {} exists' . format ( path ) ) #NEWLINE# try : #NEWLINE# #INDENT# os . makedirs ( path ) #NEWLINE# #UNINDENT# except OSError as e : #NEWLINE# #INDENT# if ( e . errno != errno . EEXIST ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True