[Twisted-Python] Re: Re: Resume FTP file retrieval

Andrew Bennetts andrew-twisted at puzzling.org
Sun Jan 4 16:11:20 MST 2004


On Sun, Jan 04, 2004 at 01:37:26PM +0000, Richard Townsend wrote:
> Hi Andrew,
> 
> Thanks very much for your suggestions.
[...]
> 
> However, I actually receive the complete file, and not the partial download I 
> expected.
> 
> Note: when I use ftplib.FTP.retrbinary() using the "rest" arg (connecting to 
> the same server) I do get the partial download.
> 
> Any ideas why my Twisted version is not working?

Glancing at ftplib, the difference is that my suggestion will send REST,
PORT/PASV, RETR (in that order), but ftplib does PORT/PASV, REST, RETR.  A
quick glance at http://cr.yp.to/ftp/retr.html doesn't suggest that this
should matter, but this is FTP after all...  (and it wouldn't surprise me if
different servers behave differently here, too)

Looks like FTPClient will need to be changed after all :/

-Andrew.





More information about the Twisted-Python mailing list