Function kismet_cache::raw_cache::prune

source ·
pub fn prune(cache_dir: PathBuf, capacity: usize) -> Result<(u64, usize)>
Expand description

Attempts to prune the contents of cache_dir down to at most capacity files, with a second chance policy.

On success, returns an estimate of the number of files remaining in cache_dir and the number of files deleted.

Ignores any subdirectory of cache_dir.