Skip to main content

load_cached_manifest

Function load_cached_manifest 

Source
pub fn load_cached_manifest(
    cache_dir: &Path,
    id: &str,
) -> Result<Manifest, CacheError>
Expand description

Loads a cached manifest by snapshot id from cache_dir.

Reads <cache_dir>/.manifests/<id…> (the sharded manifest path) and parses it. This is the “manifest must be present locally” precondition of check_snapshot_integrity, exposed on its own for callers that have only an id and a cache directory.

§Errors