Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created February 4, 2010 18:41
Show Gist options
  • Select an option

  • Save btbytes/294960 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/294960 to your computer and use it in GitHub Desktop.
Simple FTP Server
#!/usr/bin/env python
'''
simple_ftp_server.py
Depends on pyftpdlib - http://code.google.com/p/pyftpdlib/
2010-02-04
'''
from pyftpdlib import ftpserver
authorizer = ftpserver.DummyAuthorizer()
authorizer.add_user("user", "12345", "/home/pradeep/ftp", perm="elradfmw")
handler = ftpserver.FTPHandler
handler.authorizer = authorizer
address = ("0.0.0.0", 8021)
ftpd = ftpserver.FTPServer(address, handler)
ftpd.serve_forever()
@aceslup
Copy link
Copy Markdown

aceslup commented May 12, 2017

看起来就是pyftpdlib官方的吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment