From 635e981fc429382f4be1d6f350570228ebfa5795 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 14 Aug 2011 19:06:07 +0100 Subject: [PATCH] Fix problem with correcting case on linux. --- src/calibre/devices/usbms/driver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/devices/usbms/driver.py b/src/calibre/devices/usbms/driver.py index c01fca4120..90d9ef05b2 100644 --- a/src/calibre/devices/usbms/driver.py +++ b/src/calibre/devices/usbms/driver.py @@ -287,6 +287,9 @@ class USBMS(CLI, Device): 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.