From 003c06f1ee1ee2c3e562593ccf0324a528f1bc9f Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Sat, 2 Mar 2024 11:39:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3file=20storage?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/storage/file.storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/file.storage.ts b/src/storage/file.storage.ts index 6d6e085..c627611 100644 --- a/src/storage/file.storage.ts +++ b/src/storage/file.storage.ts @@ -29,7 +29,7 @@ export class FileStorage implements IStorage { return Bluebird.filter( files, async (file) => { - const st = await stat(join(this.cacheDir, file.path)).catch(() => null) + const st = await stat(join(this.cacheDir, hashToFilename(file.hash))).catch(() => null) return st?.size !== file.size }, {