mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-13 21:52:59 +00:00
On Windows a folder can be set to tell case apart, and then IN beside the root in passed as inside it, because names were compared with to_lowercase. Both paths have the spelling the file system gives them by then, so another spelling of the root still matches with an exact compare. A missing name keeps the spelling it was given, but it can only match a root that exists, and resolve has already found that one in its real spelling. is_device_name also missed COM¹, COM², COM³ and LPT¹, LPT², LPT³, which Windows reserves too. It also cut the name only at a period, so COM1: and NUL:x were not seen as device names.