In VS on Mac OS when I try to rename a file then if the file exists with a different case it won't let me rename it. Is there any way around this. Seems like something I would have thought would have been fixed 20 years ago :-(
Asked
Active
Viewed 162 times
2
-
3By default, the macOS file system is case insensitive, meaning that GsButton.xaml and GSButton.xaml are really just different ways of writing the same filename. – Gordon Davisson Jun 23 '19 at 18:20
1 Answers
2
not sure I understand your issue, are you trying to rename a file to a name that's already exist (with or without the same case)? because if that's the case, you won't be able since apfs isn't case sensitive as far as I know.

stylo
- 496
- 4
- 12
-
I am trying to rename a file from GssButton to GsButton. However I file with name GSButton exists and it appears Mac OS visual studio does not handle case sensitivity of filenames :-( – Alan2 Jun 24 '19 at 05:37
-
1As I was saying, APFS isn't case sensitive (unless you set it to be), so if there's a file exist already with the name you desire, you cannot create / rename another file to its name in the same directory no matter the case. you'll have to use a different name or save it under a different directory with the name you want. – stylo Jun 24 '19 at 06:20