Simple FTP Client

Just just at xs4all.nl
Sun Feb 2 07:26:05 EST 2003


In article <mailman.1044148623.7482.python-list at python.org>,
 Andrew Bennetts <andrew-pythonlist at puzzling.org> wrote:

> You need to pass a callback method, which will be called with each piece of
> data as it comes in.
> 
> E.g.
> 
>     f = open('downloaded.file', 'w')
>     ftp.retrbinary(....,  f.write)

Except you must open the file in binary mode for this to be portable.

Just




More information about the Python-list mailing list