Skip to main content

Module apply

Module apply 

Source
Expand description

Execute a SyncPlan: atomic file copies, metadata preservation, contained symlinks, and guarded deletes.

Files are written to a temporary name in the destination directory, flushed with fsync, given the source’s mode and mtime, then atomically renamed over the target — so a crash mid-copy never leaves a half-written file in place. Every write/symlink/delete target is checked for destination containment first.

Structs§

ApplyOptions
Knobs controlling how a plan is applied.
MetadataOptions
Optional metadata and file-layout preservation controls.

Enums§

Backend
Which file-copy backend to use.

Functions§

apply_plan
Apply plan, mirroring src into dst.
apply_plan_controlled
Apply a plan with cooperative pause and cancellation.