[Twisted-Python] using ftpclient storeFile question

Stéphane Brault stephane_brault at yahoo.fr
Wed Jul 19 09:50:07 EDT 2006

Thanks Jean-Paul,
 there was a bug in the SenderProtocol, but I found the answer in the ticket #1794.

----- Message d'origine ----
De : Jean-Paul Calderone <exarkun at divmod.com>
À : twisted-python at twistedmatrix.com
Envoyé le : Mercredi, 19 Juillet 2006, 3h08mn 32s
Objet : Re: [Twisted-Python] using ftpclient storeFile question

On Wed, 19 Jul 2006 12:50:05 +0000 (GMT), Stéphane Brault <stephane_brault at yahoo.fr> wrote:
> I'm using twisted to create a ftp client. The only problem I have is I don't understand how to upload a file (using storeFile), since the only parameters this function has is the path where to store the file. How do I indicate which file to upload ?

storeFile returns a two-tuple of Deferreds.  The first Deferred fires with an
L{IFinishableConsumer}.  You put the data to uploda into that consumer.  You
do this using a producer, eg twisted.protocols.basic.FileSender.


Twisted-Python mailing list
Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list