Skip to content

Instantly share code, notes, and snippets.

@deepal
Created October 28, 2015 22:30
Show Gist options
  • Save deepal/03b5e0dbfb7ad2732e14 to your computer and use it in GitHub Desktop.
Save deepal/03b5e0dbfb7ad2732e14 to your computer and use it in GitHub Desktop.
def startServer():
authorizer = DummyAuthorizer()
authorizer.add_anonymous(USER_HOME + "/anonymous", perm='elradfmwM')
handler = MyHandler
handler.authorizer = authorizer
handler.banner = "Server Ready.."
hostname = ""
address = (hostname,21)
server = FTPServer(address, handler)
server.max_cons = 10
server.serve_forever() # start the server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment