pdfcraft/apps/pdfcraft-cli/tests
wstock 2627081935
Issue #249: pdfcraft-cli split creates --out-dir when it does not exist (#256)
`split --out-dir DIR` wrote each part with `std::fs::write` and never
created DIR, so a folder that did not exist yet failed on the first part
with the part's path and a raw OS error ("The system cannot find the path
specified. (os error 3)") — easy to read as the split itself failing.

The folder is now created with `create_dir_all` once the parts have been
computed, before any is written; a folder that can't be created is
reported as `split: --out-dir DIR: <error>`, naming the folder rather
than the first part.

Tests (apps/pdfcraft-cli/tests/split.rs): a nested folder that does not
exist is created and holds every part listed on stdout; an `--out-dir`
that is an existing file fails with a message naming the option and
leaves the file as it was.

Co-authored-by: wstock <1394687+wstock@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-08 07:26:03 -04:00
..
edit.rs CLI: edit rejects unknown options instead of writing an unchanged copy (#133) (#227) 2026-10-08 03:39:27 -04:00
render.rs Issue #248: pdfcraft-cli render writes the format its --out name says (.png, .jpg, .tif or .pam) (#255) 2026-10-08 07:25:43 -04:00
run_root.rs Security: --root confinement leaks and escapes (#136, #137) (#164) 2026-10-07 21:12:32 -04:00
split.rs Issue #249: pdfcraft-cli split creates --out-dir when it does not exist (#256) 2026-10-08 07:26:03 -04:00
stdout.rs Restore #196, #202, #203 and the macOS release-runner change, reverted by the i18n chain (#229) 2026-10-08 03:33:35 -04:00
text.rs CLI: text fails when the document cannot be opened (#132) (#233) 2026-10-08 04:25:52 -04:00