Python Forum
case-sensitive search - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: case-sensitive search (/thread-11324.html)



case-sensitive search - saisankalpj - Jul-03-2018

In python 2.7.14 when i am giving file path like c:\users\<FILENAME> For c:\users\<filename> ,it is accepting .Is it by default like that in python or is there any way by which I can make it case-sensitive


RE: case-sensitive search - gruntfutuk - Jul-03-2018

I think that's an os matter rather than a Python one. Windows doesn't differentiate filenames by case, but most operating systems do.

There's an option on Windows 10 to enable case sensitive file names, but it is on a folder (and below) basis. https://www.howtogeek.com/354220/how-to-enable-case-sensitive-folders-on-windows-10/