1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-09 12:03:20 +00:00

cmount: add --mount-case-insensitive to force the mount to be case insensitive

This commit is contained in:
Nick Craig-Wood
2023-03-13 11:28:26 +00:00
parent 5f4d7154c0
commit bd46f01eb4
2 changed files with 7 additions and 1 deletions

View File

@@ -160,7 +160,11 @@ func mount(VFS *vfs.VFS, mountPath string, opt *mountlib.Options) (<-chan error,
fsys := NewFS(VFS)
host := fuse.NewFileSystemHost(fsys)
host.SetCapReaddirPlus(true) // only works on Windows
host.SetCapCaseInsensitive(f.Features().CaseInsensitive)
if opt.CaseInsensitive.Valid {
host.SetCapCaseInsensitive(opt.CaseInsensitive.Value)
} else {
host.SetCapCaseInsensitive(f.Features().CaseInsensitive)
}
// Create options
options := mountOptions(VFS, opt.DeviceName, mountpoint, opt)