Skip to main content

sweep_candidates

Function sweep_candidates 

Source
fn sweep_candidates(dir: &Path, skill: &ShippedSkill) -> Vec<PathBuf>
Expand description

The files inside one skill’s directory that are forge’s to remove: the {file}.tmp one of its own files leaves when a write failed, or a name the skill retires.

Only its own temp names. The directory sits in a sync-replicated tree, so any other .tmp beside it belongs to something else. A name the asset still ships is never swept, even when it is also listed as retired: a future asset ending in .tmp would otherwise delete itself on its next boot.