mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:03:53 +02:00
Fix problem with correcting case on linux.
This commit is contained in:
parent
6b088aceda
commit
635e981fc4
1 changed files with 3 additions and 0 deletions
|
|
@ -287,6 +287,9 @@ def correct_case_of_filename(self, filepath):
|
|||
if iswindows:
|
||||
# must put a \ after the prefix or it will read the current directory
|
||||
res += os.sep
|
||||
else:
|
||||
# for *nix file systems, must put a sep on the front.
|
||||
res = os.sep + res
|
||||
|
||||
# read down the path directory by directory, doing a case-insensitive
|
||||
# compare. Build a new path of the components with the case as on disk.
|
||||
|
|
|
|||
Loading…
Reference in a new issue