From 3e188495f50e909c435e5c952b7495f902c7fb13 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 26 Jan 2021 14:47:51 +0000 Subject: [PATCH] sugarsync: fix finding directories in a case insentive way #4830 --- backend/sugarsync/sugarsync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/sugarsync/sugarsync.go b/backend/sugarsync/sugarsync.go index ef388bc78..32335af28 100644 --- a/backend/sugarsync/sugarsync.go +++ b/backend/sugarsync/sugarsync.go @@ -531,7 +531,7 @@ func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut strin //fs.Debugf(f, "FindLeaf(%q, %q)", pathID, leaf) // Find the leaf in pathID found, err = f.listAll(ctx, pathID, nil, func(item *api.Collection) bool { - if item.Name == leaf { + if strings.EqualFold(item.Name, leaf) { pathIDOut = item.Ref return true }