From acb9e17eb3a266a31a7d20d8f5887f91bc720607 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 26 Jan 2021 14:47:34 +0000 Subject: [PATCH] box: fix finding directories in a case insentive way #4830 --- backend/box/box.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/box/box.go b/backend/box/box.go index 7edeaacbf..3cbcd9a51 100644 --- a/backend/box/box.go +++ b/backend/box/box.go @@ -514,7 +514,7 @@ func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) { func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut string, found bool, err error) { // Find the leaf in pathID found, err = f.listAll(ctx, pathID, true, false, func(item *api.Item) bool { - if item.Name == leaf { + if strings.EqualFold(item.Name, leaf) { pathIDOut = item.ID return true }