feat: Filter category tree based on ROOT_CATEGORY_ID for display while keeping the full tree for image sync, and summarize image deletion logs.
This commit is contained in:
@@ -38,7 +38,9 @@ class PictureSyncer {
|
||||
for (const id of toDelete) {
|
||||
const filePath = path.join(groupDir, `${id}.jpg`);
|
||||
await fs.unlink(filePath);
|
||||
console.log(`🗑️ Deleted obsolete image: ${filePath}`);
|
||||
}
|
||||
if (toDelete.length > 0) {
|
||||
console.log(`🗑️ Deleted ${toDelete.length} obsolete images.`);
|
||||
}
|
||||
|
||||
// 2. Download missing images
|
||||
|
||||
Reference in New Issue
Block a user