#NEWLINE# def _ssh_mkdir( self , * args ) : #NEWLINE# #INDENT# directory = join ( * args ) #NEWLINE# self . debug ( 'Create remote directory {}' . format ( directory ) ) #NEWLINE# try : #NEWLINE# #INDENT# self . _sftp_client . mkdir ( directory ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . _sftp_client . stat ( directory ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# self . error ( 'Unable to create remote directory {}' . format ( directory ) ) #NEWLINE# raise