Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in Python by (16.4k points)

I just want to confirm, Whether we can do a simple FTP server by just one line command in python? 

1 Answer

0 votes
by (26.4k points)

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.

Interested to learn more about Python? Come & Join: python course

Related questions

0 votes
1 answer
0 votes
1 answer
asked Aug 4, 2020 in AWS by Amyra (12.9k points)
0 votes
1 answer
0 votes
1 answer
asked Aug 4, 2020 in AWS by Amyra (12.9k points)
0 votes
1 answer
asked Aug 4, 2020 in AWS by Amyra (12.9k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...