Created
May 19, 2012 08:38
-
-
Save leepa/2730097 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
# pip install pyftpdlib then rock n roll | |
from pyftpdlib import ftpserver | |
authorizer = ftpserver.DummyAuthorizer() | |
authorizer.add_user("ftpshiz", "ftpshiz", "/usr/local/ftp", perm="elradfmw") | |
handler = ftpserver.FTPHandler | |
handler.authorizer = authorizer | |
address = ("127.0.0.1", 2121) | |
ftpd = ftpserver.FTPServer(address, handler) | |
ftpd.serve_forever() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment