'Return a dict made of all image names and their corresponding check info'

def dump_directory(self, path, **kwargs):

    templates = {}
    paths = []
    self.recursive_list(path, paths)
    for pair in paths:
        splits = pair[0].split('/')
        image = splits[(-2)]
        param = splits[(-1)]
        value = pair[1]
        if (image not in templates):
            templates[image] = {}
        templates[image][param] = value
    return templates
