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

This commit is contained in:
Nick Craig-Wood 2020-12-06 17:08:45 +00:00
parent b81b6da3fc
commit 4acd68188b

View File

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