[Twisted-Python] FTP: A little help?

Jean-Paul Calderone exarkun at divmod.com
Sat Mar 11 11:12:40 EST 2006

On Fri, 10 Mar 2006 23:36:04 -0500, Jeff Grimmett <grimmtooth at gmail.com> wrote:
>For no good reason, I've been trying to implement a basic FTP server w/
>Twisted 2.2. After a few puzzling exceptions, some custom code, TOSSING the
>custom code, and more quality time with the source, I've come to the
>conclusion that I need a nudge in the right direction.
>Initially, it looks like it should be pretty straightforward (as much as it
>ever gets in Twisted anyway :), but it's not working. Here's the code:
>from twisted.protocols.ftp  import FTPFactory
>from twisted.protocols.ftp  import FTPRealm
>from twisted.cred.portal    import Portal
>print "Starting FTP server"
>p = Portal(FTPRealm('./'))   # start up in local dir for giggles

Your portal has no credentials checkers, not even one that allows anonymous access.  So, no one can log in.  Try giving it a twisted.cred.checkers.AllowAnonymousAccess() at least and see if you get any further.


More information about the Twisted-Python mailing list