mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix problem with correcting case on linux.
This commit is contained in:
parent
6b088aceda
commit
635e981fc4
@ -287,6 +287,9 @@ class USBMS(CLI, Device):
|
|||||||
if iswindows:
|
if iswindows:
|
||||||
# must put a \ after the prefix or it will read the current directory
|
# must put a \ after the prefix or it will read the current directory
|
||||||
res += os.sep
|
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
|
# 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.
|
# compare. Build a new path of the components with the case as on disk.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user