Skip to main content

execute_plan

Function execute_plan 

Source
pub fn execute_plan(
    plan: &CopyPlan,
    options: &ExecutionOptions,
) -> MtagResult<ExecutionSummary>
Expand description

Applies a prepared copy plan to the filesystem.

In dry-run mode, destination conflict handling is still evaluated, but no directories or files are written.

ยงErrors

Returns MtagError::DestinationExists when the conflict policy is ConflictStrategy::Fail and a destination already exists. Returns MtagError::FileOperation when directory creation, copying, or source removal fails.