core: fix copy error (#777)

This commit is contained in:
panda authored and GitHub committed 2024-04-05 17:23:14 +08:00
1 parent 18faad5510
commit 6454e2ed96
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -335,6 +335,7 @@ class LocalStorageService {
async copy(src: string, target: string) {
src = resolve(this.dir, convertPath(src));
target = resolve(this.dir, convertPath(target));
await ensureDir(dirname(target));
await copyFile(src, target);
return { etag: target, lastModified: new Date() };
}