def dir(self, connId='<STR_LIT:default>'):
dirList = []<EOL>thisConn = self.__getConnection(connId)<EOL>outputMsg = "<STR_LIT>"<EOL>try:<EOL><INDENT>thisConn.dir(dirList.append)<EOL>for d in dirList:<EOL><INDENT>outputMsg += str(d) + "<STR_LIT:\n>"<EOL><DEDENT><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 dirList<EOL>
Returns list of raw lines returned as contens of current directory.
Parameters:
- connId(optional) - connection identifier. By default equals 'default'