fix(fs/abstract#kResolve): edge case with / path
This commit is contained in:
parent
81b82ce06b
commit
3814a261d6
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user