holysky5
4/24/2015 - 6:29 AM

python

python

import os
from zipfile import ZipFile


from ftplib import FTP

ftp = FTP("192.168.4.128")
try:
    with open('D:/flycar-admin_last.zip', 'wb') as file:
        ftp = FTP("192.168.4.128")
        ftp.login(user='navitest', passwd='navitest')
        ftp.cwd("pc/flycar2.2/platform")
        ftp.retrbinary("RETR flycar-admin-alpha-2.2.0-20150407114409.zip", file.write)

finally:
    ftp.quit()