'Handle success/failure of the FileFinder flow.'

@flow.StateHandler()
def HandleDownloadedFiles(self, responses):

    if responses.success:
        for file_finder_result in responses:
            self.SendReply(file_finder_result.stat_entry)
            self.Log('Downloaded    %s', file_finder_result.stat_entry.pathspec.CollapsePath())
    else:
        self.Log('Binaries    download    failed:    %s', responses.status)
