[Twisted-Python] How do I upload files using FTPClient?

On Tue, 7 Jan 2003 10:37:22, Andrew Bennetts wrote:
That'd be great; I'm interested to see how you do it, as I don't yet fully understand the Twisted way. I have always used Python's ftplib, so doing this in a fully async manner is still a little mind-bending for me.
Well, since you asked, I could really use MKD and RMD too, since I am copying a directory hierarchy from one server to another, and the target server may not already have the correct directory layout.
That sounds pretty cool, although I'll be perfectly happy if FTPClient can reproduce the current functionality of ftplib. On a semi-related note, I'm thinking about trying to write a Protocol/Factory to handle the SCC protocol used by PVCS, SourceSafe, and a few other commercial source control tools. I'm thinking in terms of a Twisted.vcs plugin. Is this a good idea, or is this really not what Twisted is best used for? Thanks for the help, L. Daniel Burr Thanks for your help, L. Daniel Burr

On Mon, Jan 06, 2003 at 07:47:48PM -0800, Daniel Burr wrote:
The FTPClient isn't the prettiest code in Twisted, but it's alot better than it used to be ;) The key to understanding Twisted is really Deferreds, I think. Once you understand those, the rest starts to fall in place nicely.
Ah! Good idea.
Well, I'm more inclined to spend time on adding a feature if I know someone wants to/would use it, so keep pestering me :)
That sounds reasonable to me. I know at least one of the Twisted developers is keen to have WebDAV support, so that they can run Subversion without Apache. -Andrew.

On Mon, Jan 06, 2003 at 07:47:48PM -0800, Daniel Burr wrote:
The FTPClient isn't the prettiest code in Twisted, but it's alot better than it used to be ;) The key to understanding Twisted is really Deferreds, I think. Once you understand those, the rest starts to fall in place nicely.
Ah! Good idea.
Well, I'm more inclined to spend time on adding a feature if I know someone wants to/would use it, so keep pestering me :)
That sounds reasonable to me. I know at least one of the Twisted developers is keen to have WebDAV support, so that they can run Subversion without Apache. -Andrew.
participants (2)
-
Andrew Bennetts
-
Daniel Burr