Cannot rename folder (case sensitivity)

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Cannot rename folder (case sensitivity)

Post 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.
To see the attached files, you need to log into the forum.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: Cannot rename folder (case sensitivity)

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

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 138
Joined: 04 Dec 2010 17:47
Location: Win10 - SSP 125%

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.

Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: Cannot rename folder (case sensitivity)

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

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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

Sander Bouwhuis
Posts: 249
Joined: 10 Jun 2008 15:40
Location: Netherlands

Re: Cannot rename folder (case sensitivity)

Post 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
To see the attached files, you need to log into the forum.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.

Post Reply