From b4217fabd3e6600ddd2dd6ac1a344f6f5a51dfa9 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 27 Jan 2021 13:44:19 +0000 Subject: [PATCH] opendrive: fix finding directories in a case insensitive way #4830 --- backend/opendrive/opendrive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/opendrive/opendrive.go b/backend/opendrive/opendrive.go index e58ad5781..43352cde0 100644 --- a/backend/opendrive/opendrive.go +++ b/backend/opendrive/opendrive.go @@ -721,7 +721,7 @@ func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut strin for _, folder := range folderList.Folders { // fs.Debugf(nil, "Folder: %s (%s)", folder.Name, folder.FolderID) - if leaf == folder.Name { + if strings.EqualFold(leaf, folder.Name) { // found return folder.FolderID, true, nil }