Created
October 28, 2015 22:30
-
-
Save deepal/03b5e0dbfb7ad2732e14 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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