ftplib and FTP Objects...

jic cabrera at wrc.xerox.com
Fri Apr 12 09:00:55 EDT 2002


In article <a96goi$oe9$1 at news1.wdf.sap-ag.de>, daniel says...


>It seems as if the FTP server doesn't know the PASV command. You could try
>def set_pasv(self, val):
>        '''Use passive or active mode for data transfers.
>        With a false argument, use the normal PORT mode,
>        With a true argument, use the PASV command.'''
>to use normal instead of passive mode.
>
>You should also pass the open file to storbinary instead of the read method.

Good call.  Never even thought about that.  I'll try it!  Thanks.

josé




More information about the Python-list mailing list