pub fn preflight_replace(
source: &Path,
target: &Path,
mode: SyncMode,
policy: ReplacePolicy<'_>,
) -> Result<()>Expand description
Whether sync_skill would be allowed to write here, without touching
anything. For batch callers that must refuse the whole operation before
mutating any of it (#363, expectation 4).
This is a preflight, not an authorization: sync_skill re-checks
immediately before it removes anything, because the filesystem can change
in between.