From 01f59558444133f4a2d33af7075e2ce3ba605dde Mon Sep 17 00:00:00 2001 From: xenofem Date: Mon, 22 Jan 2024 08:20:46 -0500 Subject: [PATCH] prevent nonexistent files in collate hints --- dlibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlibrary.py b/dlibrary.py index 2e5019c..15d5079 100755 --- a/dlibrary.py +++ b/dlibrary.py @@ -180,7 +180,7 @@ def collate(args): if work_id in hint_map: 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: search_dir = work_path while True: