You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New --fix-case flag to workaround case insensitive filesystem (macOS/Windows) #4854
When syncing to a case sensitive file system, it would be nice if rclone could rename files/directories to match the case on the source.
Currently this isn't possible - rclone views HELLO.txt and hello.txt on a case insensitive file system as being the same file and skips over them.
This could be controlled with a new flag --fix-case which would only be supported on backends which implemented the Move and maybe MoveDir optional methods.
--fix-case would likely rename the source to the same name as the destination if it was different. This would mean it would make the unicode normalisation the same also.
This would be a good addition, but I think the original post mixed up the priority: the destination name should be changed to match the case of the source name, not the other way around. (The source filename should be the source-of-truth.)
Even though FILE.txt and file.txt are the same file on macOS, rclone should preserve the casing during syncs-otherwise, we're not really "cloning" the file because information is lost. That loss might seem trivial, but it's still a loss.
I also have updated a bunch of files and folder cases. (I have capitalized a lot of stuff)
It would be great if rclone could fix the cases on the destination as well.
Activity
ncw commentedon Dec 9, 2020
To implement this it would need some code to check to see if the leaf of the destination is the same as that found and to
Moveit if notrclone/fs/sync/sync.go
Line 345 in 50cf97f
Might need to check all case insensitive file systems can actually rename
HELLO.txttohello.txt- this might need a new integration test.ivandeex commentedon Nov 19, 2021
The new flag should work in
copy,syncanddedupebdkjones commentedon Sep 3, 2022
This would be a good addition, but I think the original post mixed up the priority: the destination name should be changed to match the case of the source name, not the other way around. (The source filename should be the source-of-truth.)
Even though
FILE.txtandfile.txtare the same file on macOS, rclone should preserve the casing during syncs-otherwise, we're not really "cloning" the file because information is lost. That loss might seem trivial, but it's still a loss.TitanicKiwi commentedon Apr 27, 2023
I also have updated a bunch of files and folder cases. (I have capitalized a lot of stuff)
It would be great if rclone could fix the cases on the destination as well.
edgeyyzhang commentedon Jun 9, 2023
This addition would be useful. Any updates on this?
nielash commentedon Oct 9, 2023
Yes -- I've opened a PR 🙂 #7356
9 remaining items
sync: --fix-case flag to rename case insensitive dest - fixes rclone#…
sync: --fix-case flag to rename case insensitive dest - fixes rclone#…