mirror of
https://github.com/rclone/rclone.git
synced 2025-08-16 08:38:11 +02:00
opendrive: fix finding directories in a case insensitive way #4830
This commit is contained in:
@ -721,7 +721,7 @@ func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut strin
|
|||||||
for _, folder := range folderList.Folders {
|
for _, folder := range folderList.Folders {
|
||||||
// fs.Debugf(nil, "Folder: %s (%s)", folder.Name, folder.FolderID)
|
// fs.Debugf(nil, "Folder: %s (%s)", folder.Name, folder.FolderID)
|
||||||
|
|
||||||
if leaf == folder.Name {
|
if strings.EqualFold(leaf, folder.Name) {
|
||||||
// found
|
// found
|
||||||
return folder.FolderID, true, nil
|
return folder.FolderID, true, nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user