Skip to main content

build_plan

Function build_plan 

Source
pub fn build_plan(
    src: &Path,
    dst: &Path,
    opts: PlanOptions,
    filter: &Filter,
) -> Result<SyncPlan>
Expand description

Build a SyncPlan for mirroring src into dst.

§Errors

  • the source cannot be walked (unreadable);
  • opts.delete is set but the source yields no entries (empty-source guard — refuses to mirror emptiness and wipe the destination).