// or use the path as given
if (path[0] === _slash && path[1] === _slash) {
if (idx === -1) {
authority = path.substring(2);
path = _slash;
authority = path.substring(2, idx);
path = path.substring(idx) || _slash;
}
}
return new Uri('file', authority, path, _empty, _empty);