Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic FTP Implementation in Python
from ftplib import FTP
ftp = FTP('ftp.cwi.nl') # connect to host, default port
ftp.login() # user anonymous, passwd anonymous@
ftp.retrlines('LIST') # list directory contents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment