Computes the root this path, like getRoot('c:\files') === c:\, getRoot('files:///files/path') === files:///, or getRoot('\\server\shares\path') === \\server\shares
getRoot('c:\files') === c:\
getRoot('files:///files/path') === files:///
getRoot('\\server\shares\path') === \\server\shares
Computes the root this path, like
getRoot('c:\files') === c:\
,getRoot('files:///files/path') === files:///
, orgetRoot('\\server\shares\path') === \\server\shares