def download(self, target_name, out_file_name): print("INICIANDO DOWNLOAD DO ARQUIVO") response = self.stub.download(chunk_pb2.Request(name=target_name)) save_chunks_to_file(response, out_file_name)
def download(self, target_name, out_file_name): response = self.stub.download(chunk_pb2.Request(name=target_name)) save_chunks_to_file(response, out_file_name)
def download(self, app_name, file_name, output_path): hash_id = generate_hash_id(app_name, file_name) response = self.stub.download(chunk_pb2.Request(hash_id=hash_id)) save_chunks_to_file(output_path, response) print("Successfully downloaded file with hash_id: ", hash_id)