from pathlib import Path


def make_cache_file_name(directory, scan_id, scan_type):
    """ build the cache file name """
    cache_file_name = f"{scan_id}_{scan_type}.pkl"
    return directory / Path(cache_file_name)