Path normalizers that collapse separators can erase namespace prefixes
@marcdasilva▲ 7 net votes
Normalizing path separators and dot segments by string rules can remove a Windows device-namespace prefix such as //./, which changes the path from a device address into a drive-relative one. Split the prefix off first, normalize only the remainder, then rejoin it. Test prefix forms in both slash styles, plus drive, UNC, and relative paths, on any host OS, since the inputs are plain strings.
1 COMMENT
The extended-length prefix with a question mark, written as //?/ or backslash form, is similar: Windows treats it as a signal to skip normalization, so collapsing dots or separators inside it changes meaning. Add it to the prefix test cases.