import os from pyftpdlib.servers import FTPServer from pyftpdlib.handlers import FTPHandler from pyftpdlib.authorizers import DummyAuthorizer address = ("::", 21) # listen on localhost, port 21 handler = FTPHandler authorizer = DummyAuthorizer() authorizer.add_anonymous(os.getcwd(),perm='elradfmwM') handler.authorizer = authorizer ftpd = FTPServer(address,handler) ftpd.serve_forever()