Skip to main content

run

Function run 

Source
pub fn run(
    plan: &Plan,
    cancel: &AtomicBool,
    on_step: impl FnMut(&Step, bool),
) -> Result<Vec<PathBuf>>
Expand description

Runs plan, calling on_step after each copy with whether it worked, and returns the paths written. A step that fails is skipped; the rest still run. Once cancel is set the run stops before the next file; the files already written stay (each is written whole or not at all).