rootName

fnauto rootName(R)(R path) if (isRandomAccessRange!R && hasSlicing!R && hasLength!R && isSomeChar!(ElementType!R) && !isSomeString!R)

Returns the root directory of the specified path, or null if the path is not rooted.

Parameters

pathA path name.

Returns

A slice of path.
fnauto rootName(C)(C[] path) if (isSomeChar!C)

ditto