Skip to main content

sweep

Function sweep 

Source
pub fn sweep(root: &Path, named: impl Fn(&str) -> bool) -> usize
Expand description

Clear what is left behind: uploads that never finished, and stored files no task names (named says whether one does) once they are an hour old, so an upload waiting to be attached is not lost. Returns how many files went.