Page 1 of 1
Cannot rename folder (case sensitivity)
Posted: 22 Jul 2021 11:30
by Sander Bouwhuis
I found a regression when trying to rename folders.
I have a folder called:
"E:\Development\Dms v6.0.1 Head"
I wanted to rename it to:
"Dms v6.0.1 head"
But, I get this error message:
Incorrect error message.png
It does work correctly when you rename a file. Only renaming a folder has this bug.
Re: Cannot rename folder (case sensitivity)
Posted: 22 Jul 2021 11:37
by highend
A regression? If so, in which version did this work correctly?
Does it work when using Windows Explorer?
Re: Cannot rename folder (case sensitivity)
Posted: 22 Jul 2021 12:10
by Sander Bouwhuis
1. I'm sorry, I assumed it was a regression because surely I would have noticed this before. I very regularly change the case on a folder.
2. Yes, it works in Windows Explorer.
Re: Cannot rename folder (case sensitivity)
Posted: 23 Jul 2021 12:47
by admin
Can't reproduce. How exactly are you trying to rename the folder?
Re: Cannot rename folder (case sensitivity)
Posted: 23 Jul 2021 16:35
by glusberg
This happened to me recently, and for me it turned out to be an issue of an exFAT formatted disk, which is not case sensitive. Hope this helps.
Re: Cannot rename folder (case sensitivity)
Posted: 24 Jul 2021 08:21
by Sander Bouwhuis
In my case it is an NTFS volume, which is also not case-sensitive in Windows.
The strange thing is that I also cannot reproduce it anymore. But you saw the XYPlorer screenshot so it did actually happen.
Edit:
Cause:
AHA! I managed to reproduce it. When I have Visual Studio 2019 open I get that error message. It's probably an incorrect message for when a directory is locked.
Suggested fix:
Change the error message to the correct one : "Directory in use/locked"
Re: Cannot rename folder (case sensitivity)
Posted: 24 Jul 2021 09:08
by highend
You said that it works in Windows Explorer so the directory can't be locked otherwise WE would fails as well?
Re: Cannot rename folder (case sensitivity)
Posted: 24 Jul 2021 09:30
by admin
Sure, will do.
FYI, the wrong error message is a side effect of this fix:
viewtopic.php?f=2&t=16948
Re: Cannot rename folder (case sensitivity)
Posted: 24 Jul 2021 16:48
by Sander Bouwhuis
highend wrote: ↑24 Jul 2021 09:08
You said that it works in Windows Explorer so the directory can't be locked otherwise WE would fails as well?
You are right. That is my mistake. Only when you asked me to check with Windows Explorer I didn't have VS2019 open. Later, when I tried again with XYPlorer I had VS2019 open again. I have VS2019 open 90%+ of the time, but I had just closed it to do an update.
Doh!
This is what Windows Explorer says (which makes a lot more sense):
Renaming error message.png