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§
- Apply
Options - Knobs controlling how a plan is applied.
- Metadata
Options - Optional metadata and file-layout preservation controls.
Enums§
- Backend
- Which file-copy backend to use.
Functions§
- apply_
plan - Apply
plan, mirroringsrcintodst. - apply_
plan_ controlled - Apply a plan with cooperative pause and cancellation.