Skip to main content

prune_scratch_dir

Function prune_scratch_dir 

Source
pub fn prune_scratch_dir(workspace_root: &Path, max_age: Duration)
Expand description

Remove scratch files whose mtime is older than max_age. Best-effort: per-entry failures are logged at debug and skipped, and a missing dir is a no-op.