This commit is contained in:
2023-06-25 10:58:42 +08:00
parent 837aa95913
commit 2fb8b4b74c

6
db.ts
View File

@@ -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) {