def versioned_files(self, skip_script=False, skip_local=False, skip_access=False):
    'Find first files accessed in a trial\n        Return map with relative path -> (code_hash, type)\n\n        Possible types: script, module, access\n        '
    files = {}

    def add(path, info):
        'Add file to dict'
        if os.path.isabs(path):
            if (not (persistence_config.base_path in path)):
                return
            path = os.path.relpath(path, persistence_config.base_path)
        files[path] = info
    if (not skip_script):
        add(self.script, {'code_hash': self.code_hash, 'type': 'script'})
    if (not skip_local):
        for module in self.local_modules:
            add(module.path, {'code_hash': module.code_hash, 'type': 'module', 'name': module.name})
    if (not skip_access):
        for faccess in reversed(list(self.file_accesses)):
            add(faccess.name, {'code_hash': faccess.content_hash_before, 'type': 'access'})
    return files
Find first files accessed in a trial
Return map with relative path -> (code_hash, type)

Possible types: script, module, access
def versioned_files(self, skip_script=False, skip_local=False, skip_access=False):
    'Find first files accessed in a trial\n        Return map with relative path -> (code_hash, type)\n\n        Possible types: script, module, access\n        '
    files = {}

    def add(path, info):
        'Add file to dict'
        if os.path.isabs(path):
            if (not (persistence_config.base_path in path)):
                return
            path = os.path.relpath(path, persistence_config.base_path)
        files[path] = info
    if (not skip_script):
        add(self.script, {'code_hash': self.code_hash, 'type': 'script'})
    if (not skip_local):
        for module in self.local_modules:
            add(module.path, {'code_hash': module.code_hash, 'type': 'module', 'name': module.name})
    if (not skip_access):
        for faccess in reversed(list(self.file_accesses)):
            add(faccess.name, {'code_hash': faccess.content_hash_before, 'type': 'access'})
    return files