def PathToPatterns(path):
    if (path[(- 1)] == '/'):
        path += '*'
    for (device_path, target_files_rel_paths) in DIR_SEARCH_PATHS.items():
        if path.startswith(device_path):
            suffix = path[len(device_path):]
            return [(rel_path + suffix) for rel_path in target_files_rel_paths]
    raise RuntimeError(('Unrecognized path from checkvintf --dump-file-list: ' + path))
def PathToPatterns(path):
    if (path[(- 1)] == '/'):
        path += '*'
    for (device_path, target_files_rel_paths) in DIR_SEARCH_PATHS.items():
        if path.startswith(device_path):
            suffix = path[len(device_path):]
            return [(rel_path + suffix) for rel_path in target_files_rel_paths]
    raise RuntimeError(('Unrecognized path from checkvintf --dump-file-list: ' + path))