sugarsync: fix finding directories in a case insentive way #4830

This commit is contained in:
Nick Craig-Wood 2021-01-26 14:47:51 +00:00
parent acb9e17eb3
commit 3e188495f5
1 changed files with 1 additions and 1 deletions

View File

@ -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
}