I have the following code which easily connects to the FTP server and opens a zip file. I want to download that file into the local system. How to do that?
#
A = filename ftp = ftplib.FTP("IP") ftp.login("USR Name", "Pass") ftp.cwd("/Dir") try: ftp.retrbinary("RETR " + filename ,open(A, 'wb').write) except: print "Error"