Created
February 26, 2014 08:29
-
-
Save djcoin/9225799 to your computer and use it in GitHub Desktop.
Simple FTP
This file contains hidden or 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
from pyftpdlib import ftpserver | |
authorizer = ftpserver.DummyAuthorizer() | |
authorizer.add_user("a", "a", "/tmp", perm="elradfmw") | |
authorizer.add_anonymous("/tmp") | |
handler = ftpserver.FTPHandler | |
handler.authorizer = authorizer | |
address = ("0.0.0.0", 21) | |
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