Strips the drive from a Windows path. On POSIX, the path is returned unaltered.
A pathname
A slice of path without the drive component.
version (Windows) { assert(stripDrive(`d:\dir\file`) == `\dir\file`); assert(stripDrive(`\\server\share\dir\file`) == `\dir\file`); }
See Implementation
Strips the drive from a Windows path. On POSIX, the path is returned unaltered.