running the python(2.7) code below does not upload the complete (112Kb) file to ftp server

765
0
09-16-2020 12:30 AM
rahulsaxena
New Contributor
flnm=today_date+"-"+"03"+"0000"+"_sasiaffg_india_gauge_precip_report.csv"
f = ftplib.FTP('192.168.14.187')
f.login('xxxx', 'IMD:140520:Xchg.ftp')
f.cwd(ftp_dir)
flname = os.path.join(svdir, flnm)
result = f.storbinary('STOR ' + flnm, open(flname, "rb"))
0 Kudos
0 Replies