mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 05:07:49 +00:00
Creating a destination whose name holds `*`, `?`, `"`, `<`, `>` or `|` fails inside Win32 with ENOENT, so the write surfaced "Could not exclusively create extraction path: Report*.txt" with a raw cause. That reads as a missing path, not as a name the destination cannot hold. I refuse those names before any extraction path is created and raise the DestinationPathUnrepresentableFailure that already reports ENAMETOOLONG, so the refusal names the destination filesystem as the owner. The character set stays in portablePathSegment.ts, which isPortablePathSegment already applies to bundle and ROM names. Device names and trailing dots or spaces stay accepted: the host materializes NUL, CON and name. as ordinary files, so there is no Win32 redirection to refuse.