Resuming a file download with python

Dan Schmidt dfan at harmonixmusic.com
Sat Oct 21 08:57:27 EDT 2000


"Robert Harris" <Robert.Harris at gmx.net> writes:

| I want to resume a file download with python. It would be
| either the http or ftp protocol used. How could I do it or isn't
| it possible ? I browsed through the docs of the http and ftp objects
| but didn't find anything.

ftplib started supporting this in 2.0 (two days after I hacked it into
my own copy of the library :).  retrbinary() now takes an optional
'rest' parameter to tell it how many bytes into the file to seek
before starting to download.

-- 
                 Dan Schmidt | http://www.dfan.org
Honest Bob CD now available! | http://www.dfan.org/honestbob/cd.html



More information about the Python-list mailing list