Skip to main content

clean

Function clean 

pub fn clean(work_dir: &Path) -> Result<()>
Expand description

Removes work_dir with the files created by run.

run calls it once the update is flashed. Call it to remove the files that a failed update left behind.

ยงErrors

Returns an error if work_dir exists and cannot be removed.