From 4eac88babf79042e432e72cf2b62818a89f58ae8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 27 Jan 2021 14:01:38 +0000 Subject: [PATCH] premiumizeme: fix finding directories in a case insensitive way #4830 --- backend/premiumizeme/premiumizeme.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/premiumizeme/premiumizeme.go b/backend/premiumizeme/premiumizeme.go index a329102ca..eca5cd7f7 100644 --- a/backend/premiumizeme/premiumizeme.go +++ b/backend/premiumizeme/premiumizeme.go @@ -345,7 +345,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 }