From 2fb8b4b74c139721838b1ffffbc2493fc9b58bae Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 25 Jun 2023 10:58:42 +0800 Subject: [PATCH] Update --- db.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db.ts b/db.ts index c9cb519..6b50e0b 100644 --- a/db.ts +++ b/db.ts @@ -448,6 +448,12 @@ export class EhDb { ofiles.slice(1).forEach((o) => { this.delete_file(o); }); + ofiles.forEach((o) => { + if (o.path !== f.path) { + try_remove_sync(o.path); + console.log("Deleted ", o.path); + } + }); } } if (f.id) {