Lines Matching refs:filename
40 def DownloadComplete(self, outfile, filename): argument
45 def DownloadError(self, filename): argument
48 def TftpDownloadHandler(self, ip, filename, path=None): argument
50 filename = str(filename)
51 print("Downloading: " + filename + " from " + ip)
52 outfile = FLASH_DOWNLOAD_PATH + "/" + os.path.basename(filename)
54 ["tftp", "-l", outfile, "-r", filename, "-g", ip]
57 self.DownloadComplete(outfile, filename)
59 self.DownloadError(filename)
63 self.DownloadError(filename)
67 def DownloadHandler(self, url, filename, path=None): argument
69 filename = str(filename)
70 print("Downloading: " + filename + " from " + url)
71 outfile = FLASH_DOWNLOAD_PATH + "/" + os.path.basename(filename)
72 subprocess.call(["tftp", "-l", outfile, "-r", filename, "-g", url])
81 intf.error("Download Error: " + filename)