Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
case-sensitive search
#1
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
Reply
#2
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-...indows-10/
I am trying to help you, really, even if it doesn't always seem that way
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Context-sensitive delimiter ZZTurn 9 1,394 May-16-2023, 07:31 AM
Last Post: Gribouillis
  Switch case or match case? Frankduc 9 4,387 Jan-20-2022, 01:56 PM
Last Post: Frankduc
  Case sensitive checks kam_uk 2 1,968 Nov-30-2020, 01:25 AM
Last Post: bowlofred
  How do I copy files without case sensitive? mcesmcsc 8 4,851 Dec-18-2019, 02:19 PM
Last Post: mcesmcsc
  Case sensitive path asheru93 6 5,869 Jan-28-2019, 01:52 PM
Last Post: asheru93

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020