MaterialFiles icon indicating copy to clipboard operation
MaterialFiles copied to clipboard

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

Open mosource21 opened this issue 1 year ago • 4 comments

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?

mosource21 avatar Apr 22 '24 09:04 mosource21

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

SomeTroglodyte avatar Apr 25 '24 21:04 SomeTroglodyte

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 avatar Apr 27 '24 08:04 mosource21

Corroborating this.

devycarol avatar Jun 02 '24 19:06 devycarol

Base Linux is case-sensitive, Android is not, (I think).

Feuerswut avatar Jun 23 '24 22:06 Feuerswut