mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure original_path does not end in a trailing slash which is probably what was causing the failures in the first place
This commit is contained in:
parent
24ac765178
commit
cc970aa694
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user