mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 04:52:54 -05:00
Off Unix, write_atomic_checked asked `allowed` once, before the file was written, so a destination that stopped being allowed while the file was filled still received it. The check now runs again after the fill, right before the rename, and again before the content is copied over a file whose folder refuses the rename. A refusal removes the staging file and leaves the target as it was. The hard-link fixtures in the capture tests unwrap the link again, as the other hard-link tests in the engine do (script_io.rs, plugins.rs).