We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 686b339 commit fb8cd44Copy full SHA for fb8cd44
packages/core/src/Storage.ts
@@ -53,6 +53,8 @@ export abstract class Storage<O extends StorageOptions = any> {
53
54
public pathAbs(path: string) {
55
const pathNormalized = path.charAt(0) === '/' ? path.substring(1) : path
56
- return `${this.directoryNormalized}/${pathNormalized}`
+ return this.directoryNormalized.length > 0
57
+ ? `${this.directoryNormalized}/${pathNormalized}`
58
+ : pathNormalized
59
}
60
0 commit comments