207
dirname = URI.file(paths.dirname(originalFSPath(resource))).path;
208
} else {
209
>
dirname = paths.posix.dirname(resource.path);
resources.ts
210
>
if (resource.authority && dirname.length && dirname.charCodeAt(0) !== CharCode.Slash) {
211
console.error(`dirname("${resource.toString})) resulted in a relative path`);
212
dirname = '/'; // If a URI contains an authority component, then the path component must either be empty or begin with a CharCode.Slash ("/") character
213
}
215
return resource.with({
216
path: dirname