'Get a set of files.'

def GetFiles(self, source, path_type, max_size):

    new_path_list = []
    for path in source.attributes['paths']:
        new_path_list.extend(artifact_utils.InterpolateKbAttributes(path, self.state.knowledge_base, ignore_errors=self.args.ignore_interpolation_errors))
    action = rdf_file_finder.FileFinderAction(action_type=rdf_file_finder.FileFinderAction.Action.DOWNLOAD, download=rdf_file_finder.FileFinderDownloadActionOptions(max_size=max_size))
    self.CallFlow(file_finder.FileFinder.__name__, paths=new_path_list, pathtype=path_type, action=action, request_data={'artifact_name': self.current_artifact_name, 'source': source.ToPrimitiveDict()}, next_state='ProcessFileFinderResults')
