def upload_bootloader(self, lpath): try: fw = fwdidj.config(self, self._mount_config.host_id, 'bootloader') paths = fw.prepare_update(lpath) self.move_update(paths) except Exception, e: self.rerror(e)
def upload_firmware(self, lpath): try: if os.path.isdir(lpath): fw = fwdidj.config(self, self._mount_config.host_id, 'firmware') paths = fw.prepare_update(lpath) self.move_update(paths) else: self.error('Path is not a directory.') except Exception, e: self.rerror(e)