mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-25 19:26:50 -06:00
write_file writes `<path>.sctmp` and renames it over the workbook. When the write or the rename failed (a full disk, or the target locked by another app such as Excel or a sync client), the temporary file was left beside the user's workbook. Remove it on either failure and report the same error. Adds io::tests::failed_save_leaves_no_temporary_file, which fails before this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>