-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: brename doesn't detect when files will be overwritten if the replacement only differs in case #28
Comments
Thanks for reporting, and I've added a flag Right now, we show the warning message if it's not set in all operating systems. Should I make it on default for the Windows version?
|
Hmm, I think it should be set by default on Windows. On Linux, we also show the warning message in case users are operating on an external disk with NTFS.
|
Thanks for fixing this. Some edge cases:
|
For case 1, I also noticed the setting somewhere too. As you said, it's an edge case. For most cases, we would better assume Windows users use case-intensive file systems. Then, for these professional users who can run tools like For case 2, renaming
Updates: You're right. In my test, it reported the |
I've added the
Here are some tests on Windows with two files ( test 1Since it's ext4, I believe the paths should be case-sensitive, so I add test 2Please help to test it. (commit 8b708c6) |
@tspivey I'll tag a new release if it works as expected :) |
I verified:
I'm trying to come up with some edge cases reading the official documentation.
This might be a separate issue since it doesn't have anything to do with case, but it can also cause data loss on NTFS. if I create |
OK, it's exptected.
Cool.
🤮 Have to add another rule ... |
OK, they are not allowed now.
A warning message is added in the help message.
|
Using brename v2.12.0 on Windows.
Create two files, test.txt and test.doc.
This works as expected. Now create test.txt and Test.doc.
Now do the rename:
Only one file remains in the directory, because NTFS is case insensitive.
The text was updated successfully, but these errors were encountered: