Files
vectorcraft/crates/format
dotCooCoo dfc42bb10b Tests: checked saves keep the original, compressed files capped on both paths
Checked saves (used under folder roots and for script commands) had no
test for a fill that fails or is canceled, for the copy of the old file
going to the system's temporary folder when the folder refuses it, or
for the path that writes in the system's temporary folder when the
folder refuses the temporary file. Five tests cover them:

- a failed fill and a canceled fill return their error, leave the file
  as it was and remove the temporary file
- a refused rename in a folder that then takes no new file keeps the
  old copy in the system's temporary folder and removes it afterwards
- a folder that takes no temporary file saves through the system's
  temporary folder, and a failed fill there leaves nothing behind
- a compressed file with data after its JSON is refused one byte past
  its JSON cap when streamed, and one byte past its whole-file cap when
  unpacked whole

The permission tests skip when running as root.
2026-12-02 20:29:24 -08:00
..