def mkd(self, newDirName, connId='<STR_LIT:default>'):
thisConn = self.__getConnection(connId)<EOL>outputMsg = "<STR_LIT>"<EOL>try:<EOL><INDENT>outputMsg += str(thisConn.mkd(newDirName))<EOL><DEDENT>except ftplib.all_errors as e:<EOL><INDENT>raise FtpLibraryError(str(e))<EOL><DEDENT>if self.printOutput:<EOL><INDENT>logger.info(outputMsg)<EOL><DEDENT>return outputMsg<EOL>
Creates new directory on FTP server. Returns new directory path.
Parameters:
- newDirName - name of a new directory
- connId(optional) - connection identifier. By default equals 'default'