stripDrive
fn
auto stripDrive(R)(R path) if (isRandomAccessRange!R && hasSlicing!R && isSomeChar!(ElementType!R) && !isSomeString!R)Strips the drive from a Windows path. On POSIX, the path is returned unaltered.
Parameters
path | A pathname |
Returns
A slice of path without the drive component.
fn
auto stripDrive(C)(C[] path) if (isSomeChar!C)ditto