1
mirror of https://github.com/rclone/rclone synced 2024-11-25 02:47:14 +01:00
rclone/cmd/cmount
nielash fd8faeb0e6 vfs: fix unicode normalization on macOS - fixes #7072
Before this change, the VFS layer did not properly handle unicode normalization,
which caused problems particularly for users of macOS. While attempts were made
to handle it with various `-o modules=iconv` combinations, this was an imperfect
solution, as no one combination allowed both NFC and NFD content to
simultaneously be both visible and editable via Finder.

After this change, the VFS supports `--no-unicode-normalization` (default `false`)
via the existing `--vfs-case-insensitive` logic, which is extended to apply to both
case insensitivity and unicode normalization form.

This change also adds an additional flag, `--vfs-block-norm-dupes`, to address a
probably rare but potentially possible scenario where a directory contains
multiple duplicate filenames after applying case and unicode normalization
settings. In such a scenario, this flag (disabled by default) hides the
duplicates. This comes with a performance tradeoff, as rclone will have to scan
the entire directory for duplicates when listing a directory. For this reason,
it is recommended to leave this disabled if not needed. However, macOS users may
wish to consider using it, as otherwise, if a remote directory contains both NFC
and NFD versions of the same filename, an odd situation will occur: both
versions of the file will be visible in the mount, and both will appear to be
editable, however, editing either version will actually result in only the NFD
version getting edited under the hood. `--vfs-block-norm-dupes` prevents this
confusion by detecting this scenario, hiding the duplicates, and logging an
error, similar to how this is handled in `rclone sync`.
2024-03-06 16:12:13 +00:00
..
arch.go selfupdate: abort if updating would discard fuse semantics 2021-03-22 22:55:24 +03:00
fs.go cmount: use atomic types 2023-08-22 12:52:13 +01:00
mount_brew.go mount: clarify rclone mount error when installed via homebrew 2023-03-29 13:59:27 +01:00
mount_test.go nfsmount: New mount command to provide mount mechanism on macOS without FUSE 2023-10-06 14:08:20 +01:00
mount_unsupported.go build: add package comments to silence revive linter 2022-08-28 13:43:51 +02:00
mount.go vfs: fix unicode normalization on macOS - fixes #7072 2024-03-06 16:12:13 +00:00
mountpoint_other.go mount: avoid incorrect or premature overlap check on windows 2023-01-24 22:27:02 +01:00
mountpoint_windows.go mount: avoid incorrect or premature overlap check on windows 2023-01-24 22:27:02 +01:00