Open Bug 1438461 Opened 6 years ago Updated 2 years ago

[mozprofile] Profile path always lower-case even for case-sensitive filesystems

Categories

(Testing :: Mozbase, enhancement, P3)

Version 3
enhancement

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

Details

As noticed on bug 1438035 and bug 1369670 the `tempfile.mkdtemp()` function always returns the path in lowercase letters even for a case-sensitive filesystem. 

It should be updated to report the correct case.

I found the following pages which propose different solutions:

https://stackoverflow.com/questions/3692261/in-python-how-can-i-get-the-correctly-cased-path-for-a-file
https://stackoverflow.com/questions/2113822/python-getting-filename-case-as-stored-in-windows

While trying to find a good solution for us we also have to make sure that the drive letter on Windows will be upper-cased because that is what Firefox reports in about:support and through various Gecko APIs.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.