[Twisted-Python] FTPClient storeFile help.

Glyph Lefkowitz glyph at twistedmatrix.com
Thu Oct 2 12:32:12 MDT 2003


Oisin Mulvihill wrote:
> I confess I really don't know how to handle the two deferred
> object that get returned by storeFile. I just add callback/
> errorback for each, this could be the problem.

If you want to wait for both, use twisted.internet.defer.DeferredList.

> Can anyone enlighten me as to what I'm doing wrong. I would
> really like to use proper async behavior for doing the uploads,
> instead of using threads + ftplib.

The FTP implementation in Twisted is sub-optimal (although that's mostly 
the server).  If you don't get any satisfactory responses I recommend 
assigning a bug to spiv in the tracker :).





More information about the Twisted-Python mailing list