Home | History | Annotate | Download | only in tools

Lines Matching refs:FTP

59 def FtpRetrieveFile(ftp, filename):
60 ftp.retrbinary('RETR %s' % filename, open(filename, 'wb').write)
63 def FtpRetrieveFileAndSignature(ftp, data_filename):
64 """Downloads and repackages the given data from the given FTP server."""
66 FtpRetrieveFile(ftp, data_filename)
70 FtpRetrieveFile(ftp, signature_filename)
142 # The FTP server lets you download intermediate releases, and also lets you
147 ftp = ftplib.FTP('ftp.iana.org')
148 ftp.login()
149 ftp.cwd('tz/releases')
150 for filename in ftp.nlst():
172 FtpRetrieveFileAndSignature(ftp, filename)