[Twisted-Python] Example of FTPClient.stor()?

Oisin Mulvihill oisin at enginesofcreation.ie
Thu Dec 4 12:20:30 EST 2003

Fred L. Drake, Jr. wrote:

>Does anyone have a (short) example using FTPClient.stor()?  I'm pretty
>new to Twisted, and am still getting the hang of the model of using
>(The presence of both stor() and storeFile() in the docs is confusing
>as well; a quick glance through twisted.protocols.ftp's source makes
>me think that stor() is the preferred name, and storeFile() is an
>implementation detail.  Is that right?)
>  -Fred
Hi Fred,

I had trouble grappling with this  as well. As far as I remember stro() 
just refers to
the storeFile() function in the code.

Attached should be an example of the final solution I came up with to do 
a storeFile().

Hopefully this is of some use to you.

All the best,


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ftpclient.py
Url: http://twistedmatrix.com/pipermail/twisted-python/attachments/20031204/d43a4251/attachment.txt 

More information about the Twisted-Python mailing list