paths.cache_file()

Path to cache file name for archive.

Usage

paths.cache_file(
    archive,
    name,
    legacy=None,
)

Normally <out-dir>/.cache/<archive>/<name>, with the parent directory created on demand. If the file does not exist there but does exist at its pre-0.3 location, that path is returned instead so existing caches keep being read and updated in place. legacy overrides that older location (used for the progress CSVs, which used to sit in the working directory rather than under scans/).