Fix problem with correcting case on linux.

This commit is contained in:
Charles Haley 2011-08-14 19:06:07 +01:00
parent 6b088aceda
commit 635e981fc4

View File

@ -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.