Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
More basic implementation of ftp on python
import ftplib
ftp = ftplib.FTP('ftp.sunet.se', 'anonymous', 'anonymous@sunet.se')
print "File List: "
files = ftp.dir()
print files
ftp.cwd("/pub/unix") #changing to /pub/unix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment