iclouddrive: mark the backend as case insensitive - fixes #10162
findLeafItem matches names with EqualFold, but the backend did not set CaseInsensitive, so a case-only rename was not seen as the same object and the file being renamed was trashed before the move.
This commit is contained in:
1 parent
64a68c7380
commit
d1ae66cac0
1 file changed
+1
@@ -694,6 +694,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
|
||||
pacer: fs.NewPacer(ctx, pacer.NewDefault(pacer.MinSleep(minSleep), pacer.MaxSleep(maxSleep), pacer.DecayConstant(decayConstant))),
|
||||
}
|
||||
f.features = (&fs.Features{
|
||||
CaseInsensitive: true, // names are matched with EqualFold, see findLeafItem
|
||||
CanHaveEmptyDirectories: true,
|
||||
PartialUploads: false,
|
||||
}).Fill(ctx, f)
|
||||
|
||||
Reference in new issue
Block a user