sd-webui-infinite-image-bro.../scripts
zanllp a5b99223e3 fix: cleanup orphaned images when removing extra paths
When a folder is removed from the library, images under that folder are
now properly cleaned up from the database if they are not covered by any
other registered paths. This fixes the issue where Random Image would
pull from folders that had been removed.

The cleanup logic checks if each image is still "owned" by any remaining
scanned path before deletion, supporting nested path scenarios where a
parent path may still contain the images.

Fixes #868

Co-Authored-By: Claude <noreply@anthropic.com>
2026-02-18 14:21:56 +08:00
..
iib fix: cleanup orphaned images when removing extra paths 2026-02-18 14:21:56 +08:00
iib_setup.py support subpath 2024-03-15 04:13:18 +08:00