For purge_deleted_files, search whole db, not just cwd.

The cwd may not exist any more since stuff has been deleted.
This commit is contained in:
voussoir 2025-11-14 17:51:16 -08:00
parent f01dd63077
commit 8b4fa133d1

View file

@ -409,7 +409,7 @@ def purge_deleted_files_argparse(args):
if args.any_photo_args:
photos = get_photos_from_args(args)
else:
photos = search_in_cwd(yield_photos=True, yield_albums=False)
photos = list(photodb.get_photos())
need_commit = False