Skip to main content

scan_cache

Function scan_cache 

Source
pub fn scan_cache(cache_dir: impl AsRef<Path>) -> Result<CacheInfo, Error>
Expand description

Scan all supported repositories below a cache directory.

A missing cache directory produces an empty CacheInfo. Problems below a readable root are collected in CacheInfo::warnings.

ยงErrors

Returns Error::Io when the cache root exists but cannot be read.