code: def _ftp_nlst(self, dir_name):
          
          assert compat.is_native(dir_name)
          lines = []
  
          def _add_line(status, line):
              lines.append(line)
  
          cmd = "NLST " + dir_name
          self._ftp_retrlines_native(cmd, _add_line, self.encoding)
          # print(cmd, lines)
          return lines
docs: Variant of `self.ftp.nlst()` that supports encoding-fallback.