def pre_match(path, old_version):
    """
    If the file has version in it then return True.

    :param path: Full path to a file in the pivt directory
    :param old_version: The version we want to change
    :return: True or False
    """
    with path.open(encoding='utf-8') as file:
        if old_version in file.read():
            print('found ' + old_version + ' in ' + str(path))
            return True
    return False