Skip to main content

clear_cache

Function clear_cache 

Source
pub fn clear_cache(path: &Path) -> Result<bool>
Expand description

Remove one snapshot, current or stale, with its content sidecar.

Returns whether this call removed it. Idempotent: clearing an absent cache succeeds, and so does clearing one another process removed first. A file that is not one of fdu’s snapshots is left in place and reported as not removed.