pub fn model_cache_path(dir: &Path, filename: &str) -> Result<PathBuf>Expand description
Resolve filename to a path inside dir, refusing anything that
is not a plain file name (no /, \, .., or absolute paths) so a
malicious or buggy ModelSource can’t write outside the cache.