[Twisted-Python] FTPClient storeFile help.

Oisin Mulvihill oisin at enginesofcreation.ie
Tue Oct 7 11:46:31 MDT 2003


Jp Calderone wrote:

>On Tue, Oct 07, 2003 at 01:20:06PM +0100, Oisin Mulvihill wrote:
>  
>
>>Jp Calderone wrote:
>>
>>[snip]
>>
>>When I run this I get as far as the line:
>>
>>   d = s.beginFileTransfer(fileObj, consumer)
>>
>>This is where it now seems to be hanginig. The file transfer doesn't
>>appear to be happening. I noticed from the docs on beginFileTransfer(),
>>that it takes 3 args: file object, consumer & transform function. I tried
>>adding a transform function to see it gets called with the data, read from
>>the file, however this never occured.
>>    
>>
>
>  This suggests to me that the data connection is never actually being made.
>
>  Try adding errbacks to all these deferreds and seeing if any of those are
>being called.
> 
>  Jp
>
>  
>
I forgot to mention I've tried this on my linux system
with python 2.2.3 and twisted 1.0.7, with no success.

om

-- 
Oisin Mulvihill
Engines Of Creation

Email: oisin at enginesofcreation.ie
Work: +353 1 6791602
Mobile: +353 868191540







More information about the Twisted-Python mailing list