Files
reverse-engineering-anything/tests
Heo Hao 7741d92531 fix(artifacts): refuse an unrepresentable Windows name as such (#15246)
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.
2026-12-01 01:42:35 +08:00
..