Skip to main content

in_use

Function in_use 

Source
pub fn in_use(home: &Path, cache_dir: &Path) -> bool
Expand description

Is cache_dir in use right now — held by a live owner, or in a state nobody can vouch for? The conservative half of the janitor’s prune guard: Status::Unknown refuses exactly like Status::Active, because a lease this process cannot read is not evidence the directory is free.