vifm / vifm

Vifm is a file manager with curses interface, which provides Vim-like environment for managing objects within file systems, extended with some useful ideas from mutt.
https://vifm.info
GNU General Public License v2.0
2.72k stars 119 forks source link

Cannot change just the case of a file name on FAT32 (FAT/VFAT, a case-insensitive filesystem) #367

Open aleksejrs opened 6 years ago

aleksejrs commented 6 years ago

Vifm 0.9.1 on Debian says the file already exists. Adding a letter and then removing it while changing the case of the original part works.

xaizek commented 6 years ago

That's because Linux doesn't provide a way to query for case sensitivity (OS X does, so maybe *BSD systems do), so Vifm assumes FS is case-sensitive on Linux. It might be worth to try harder by trying to create temporary files that differ only by case.

xaizek commented 5 years ago

I tried to make it work, but the results aren't what I expected. Renaming operation succeeds, but nothing is being renamed, file name remains as it was before. mv aa AA also doesn't work (says the files are the same). So I'm not sure how useful this is, if there is no actual effect of such renaming (except for the cursor being moved off the file in vifm as it thinks rename was successful). On the other hand, maybe newer kernels will be able to change case.