pub fn clear_cache(cache_dir: &Path) -> PkgResult<usize>
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.