Skip to content
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

File Renaming Does Not Work When Changing Case Of Existing Characters Of The Filename? #1208

Open
mosource21 opened this issue Apr 22, 2024 · 2 comments

Comments

@mosource21
Copy link

This problem obviously makes things difficult when trying to rename files/folders. This functionality is essential if the underlying file system is case sensitive but even is the file system isn't case sensitive you may still want to rename a file for display/reading purposes.

Reproduce:
From within Material Files create a file called "test.txt". Then try to rename to "Test.txt" and the rename is not carried out (note the difference of lower and upper case "T").

Workaround:
Rename the file to "TTest.txt" and then to "Test.txt" (adding an extra character and then removing it forces the rename to happen).

Solution:
Guessing here but the check to detect if the rename should be performed should be changed to case sensitive?

@SomeTroglodyte
Copy link

Betting that's a FAT or other case-insensitive filesystem, so not a MaterialFiles issue, but a general one. Happens on other Linuxes too.

@mosource21 mosource21 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2024
@mosource21 mosource21 closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2024
@mosource21
Copy link
Author

It appears the rename works fine when browsing the root filesystem (so as you say Material Files must be working correctly) but the internal storage or a samba share to an ext4 (thought this was case sensitive though) file system is not working. It is not just file renaming if you try to create a folder with the same name as an existing folder but with different case it thinks the folder already exists. Must be something specific to the type of underlying file system or how samba is setup perhaps. Never noticed it before now though.

@mosource21 mosource21 reopened this Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants