opendrive: fix finding directories in a case insensitive way #4830

This commit is contained in:
Nick Craig-Wood 2021-01-27 13:44:19 +00:00
parent 92b9dabf3c
commit b4217fabd3

View File

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