From cc970aa694478de05071bed8d4b6cd118b5fc89d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 11 Dec 2020 17:16:46 +0530 Subject: [PATCH] Ensure original_path does not end in a trailing slash which is probably what was causing the failures in the first place --- src/calibre/srv/library_broker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/srv/library_broker.py b/src/calibre/srv/library_broker.py index 683a27b3c4..5875c1a485 100644 --- a/src/calibre/srv/library_broker.py +++ b/src/calibre/srv/library_broker.py @@ -63,6 +63,7 @@ def library_id_from_path(path, existing=frozenset()): def correct_case_of_last_path_component(original_path): + original_path = os.path.abspath(original_path) prefix, basename = os.path.split(original_path) q = basename.lower() try: