#NEWLINE# def _mkdir_p( path ) : #NEWLINE# #INDENT# 'mkdir -p path' #NEWLINE# try : #NEWLINE# #INDENT# os . makedirs ( path ) #NEWLINE# #UNINDENT# except OSError as exc : #NEWLINE# #INDENT# if ( ( exc . errno == errno . EEXIST ) and os . path . isdir ( path ) ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# logger . info ( 'New: %s%s' , path , os . path . sep )