path.rootName
fn
auto 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
path | A path name. |
Returns
A slice of
fn
auto rootName(C)(C[] path) if (isSomeChar!C)ditto