Back
I just want to confirm, Whether we can do a simple FTP server by just one line command in python?
Mandatory Twisted example:
twisted -n ftp
And most likely useful:
twisted ftp --help
Usage: twistd [options] ftp [options].WARNING: This FTP server is probably INSECURE do not use it.Options: -p, --port= set the port number [default: 2121] -r, --root= define the root of the ftp-site. [default: /usr/local/ftp] --userAnonymous= Name of the anonymous user. [default: anonymous] --password-file= username:password-style credentials database --version --help Display this help and exit.
Usage: twistd [options] ftp [options].
WARNING: This FTP server is probably INSECURE do not use it.
Options:
-p, --port= set the port number [default: 2121]
-r, --root= define the root of the ftp-site. [default:
/usr/local/ftp]
--userAnonymous= Name of the anonymous user. [default: anonymous]
--password-file= username:password-style credentials database
--version
--help Display this help and exit.
31k questions
32.8k answers
501 comments
693 users