from pathlib import Path


def ignore_files(dir: str, files: list[str]):
    """
    Returns a list of files to ignore.

    To be used by shutil.copytree()
    """
    return [f for f in files if Path(dir, f).is_file()]