prevent nonexistent files in collate hints

This commit is contained in:
xenofem 2024-01-22 08:20:46 -05:00
parent 2ab99c9a4b
commit 01f5955844

View file

@ -180,7 +180,7 @@ def collate(args):
if work_id in hint_map: if work_id in hint_map:
hint = hint_map[work_id] hint = hint_map[work_id]
entries = ls_ignore(hint) if hint.is_dir() else [hint] entries = [hint] if hint.is_file() else ls_ignore(hint)
else: else:
search_dir = work_path search_dir = work_path
while True: while True: