Skip to main content

clear_cache

Function clear_cache 

Source
pub fn clear_cache(cache_dir: &Path) -> PkgResult<usize>
Expand description

Wipe every tarball out of the cache directory.

The directory itself is kept so subsequent operations can repopulate it. Returns the number of files removed.