[Twisted-Python] FTPClient storeFile help.

Jp Calderone exarkun at intarweb.us
Tue Oct 7 09:10:23 MDT 2003


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: </pipermail/twisted-python/attachments/20031007/7432c6bd/attachment.sig>


More information about the Twisted-Python mailing list