pub fn cache_clear(dir: &Path) -> Result<u64, ClientError>Expand description
Remove every cache entry (and stray temporary files) and return how many
files were removed. Only files this cache writes are touched: names that are
a cache key plus .entry, and *.tmp. Other files, and the directories
themselves, are left alone. A symbolic link with an entry’s name is removed
as a link; its target is never followed.
§Errors
Returns an error when the directory is a symbolic link, is open to other users, or cannot be read.