Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ftp = ftplib.FTP("ftp.rtb123.com")
- ftp.login("addshoppers", "eMtz344!")
- ftp.cwd("/")
- os.chdir(r"./")
- myfile = open(filename, 'r')
- ftp.storlines('STOR ' + filename, myfile)
- myfile.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement