ftplib question - ftp.dir() returns something and ftp.nlst() does not

Fredrik Lundh fredrik at pythonware.com
Fri Nov 25 03:29:22 EST 2005


Nico Grubert wrote:

> *cmd* 'NLST'
> *put* 'NLST\r\n'
> *get* '150 About to open data connection.\r\n'
> *resp* '150 About to open data connection.'
> *retr* ''
> *get* '226 Transfer complete.\r\n'
> *resp* '226 Transfer complete.'
> []
>  >>>

it's not obvious how Python could translate '' to anything other
than an empty list, so it sure looks like a server issue.

(or is a problem with running in passive mode?  can you test with-
out using passive mode on the same server?)

</F>






More information about the Python-list mailing list