from pyftpdlib import ftpserver
HOSTNAME = "localhost"
PORT = 5555
authorizer = ftpserver.DummyAuthorizer()
authorizer.add_user("papakri", "dancinghotdogs", "/Users/alexandrospapakribopoulos/Documents/Programming")
authorizer.anonymous("/Users/alexandrospapakribopoulos/Documents/Programming")
handler = ftpserver.FTPHandler
handler.authorizer = authorizer
connection = (HOSTNAME, PORT)
ftpd = ftpsserver.FTPServer(connection, handler)
ftpd.serve_forever()
I am trying to create a basic FTP and connect with and connect it with an HTTP server that I have created. I am a bit new to python so even if it is something really obvious please point it out. I am using python 2.7.10. Thanks in advance.