Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 277 Bytes
from Config import *
from ftplib import FTP
ftp = FTP(ftpserver,ftpuser,ftppwd)
# upload as binary file
ftp.storbinary("STOR sample.xml",file('sample.xml'))
# download as binary file
out = file('downloaded.xml','wb')
ftp.retrbinary("RETR sample.xml", out.write)
Something went wrong with that request. Please try again.