Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ftplib
- host = "*"
- ftp_user = "*"
- ftp_password = "*"
- filename = "picture.png"
- con = ftplib.FTP(host, ftp_user, ftp_password)
- lf = open(filename, "wb")
- con.retrbinary("RETR " + filename, lf.write)
- lf.close()
Add Comment
Please, Sign In to add comment