View Single Post
Old 04-17-2024, 05:36 PM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,765
Karma: 7029857
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You can also try using os.path.realpath(lower_case_full_path).

In my tests on Windows 10 it converts an lcase path to the path as it really exists. I didn't try it on an MTP device.

Example:
Code:
import os.path
s = 'c:/users/me'
print(os.path.realpath(s))
C:\Users\Me
chaley is offline   Reply With Quote