code: def dir(self, connId='default'):
          
          dirList = []
          thisConn = self.__getConnection(connId)
          outputMsg = ""
          try:
              thisConn.dir(dirList.append)
              for d in dirList:
                  outputMsg += str(d) + "\n"
          except ftplib.all_errors as e:
              raise FtpLibraryError(str(e))
          if self.printOutput:
              logger.info(outputMsg)
          return dirList
docs: Returns list of raw lines returned as contens of current directory.
          Parameters:
          - connId(optional) - connection identifier. By default equals 'default'