From 78afe01d15f1c786311f279be06c4c55a6f3f547 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 27 Jan 2021 14:21:49 +0000 Subject: [PATCH] filefabric: fix finding directories in a case insensitive way #4830 --- backend/filefabric/filefabric.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/filefabric/filefabric.go b/backend/filefabric/filefabric.go index fb6241b04..4307f5b21 100644 --- a/backend/filefabric/filefabric.go +++ b/backend/filefabric/filefabric.go @@ -536,7 +536,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 }