fix(fs/abstract#kResolve): edge case with / path

This commit is contained in:
Julien Fontanet 2018-12-05 15:29:33 +01:00
parent 81b82ce06b
commit 3814a261d6

View File

@ -413,6 +413,8 @@ export default class RemoteHandlerAbstract {
// Private members
[kResolve](path: string): string {
return this[kPrefix] + normalizePath(path)
path = normalizePath(path)
const prefix = this[kPrefix]
return path === '/' ? prefix : prefix + path
}
}