sugarsync: fix NewObject for files that differ in case #4830

This commit is contained in:
Nick Craig-Wood 2020-12-07 10:56:59 +00:00
parent 4acd68188b
commit 50cf97fc72

View File

@ -264,7 +264,7 @@ func (f *Fs) readMetaDataForPath(ctx context.Context, path string) (info *api.Fi
}
found, err := f.listAll(ctx, directoryID, func(item *api.File) bool {
if item.Name == leaf {
if strings.EqualFold(item.Name, leaf) {
info = item
return true
}