stripDrive

fnauto 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

pathA pathname

Returns

A slice of path without the drive component.
fnauto stripDrive(C)(C[] path) if (isSomeChar!C)

ditto