Cannot rename folder (case sensitivity)

Things you’d like to miss in the future...
Post Reply
iycgtptyarvg
Posts: 222
Joined: 10 Jun 2008 15:40
Location: Netherlands

Cannot rename folder (case sensitivity)

Post by iycgtptyarvg »

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
Incorrect error message.png (6.37 KiB) Viewed 1002 times
It does work correctly when you rename a file. Only renaming a folder has this bug.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Cannot rename folder (case sensitivity)

Post by highend »

A regression? If so, in which version did this work correctly?

Does it work when using Windows Explorer?
One of my scripts helped you out? Please donate via Paypal

iycgtptyarvg
Posts: 222
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: Cannot rename folder (case sensitivity)

Post by iycgtptyarvg »

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.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Cannot rename folder (case sensitivity)

Post by admin »

Can't reproduce. How exactly are you trying to rename the folder?

glusberg
Posts: 115
Joined: 04 Dec 2010 17:47

Re: Cannot rename folder (case sensitivity)

Post 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.

iycgtptyarvg
Posts: 222
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: Cannot rename folder (case sensitivity)

Post by iycgtptyarvg »

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"
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Cannot rename folder (case sensitivity)

Post by highend »

You said that it works in Windows Explorer so the directory can't be locked otherwise WE would fails as well?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Cannot rename folder (case sensitivity)

Post by admin »

Sure, will do.

FYI, the wrong error message is a side effect of this fix: viewtopic.php?f=2&t=16948

iycgtptyarvg
Posts: 222
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: Cannot rename folder (case sensitivity)

Post by iycgtptyarvg »

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
Renaming error message.png (10.56 KiB) Viewed 917 times
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

Post Reply