mirror of
https://github.com/rclone/rclone.git
synced 2025-03-14 08:25:15 +08:00
opendrive: fix finding directories in a case insensitive way #4830
This commit is contained in:
parent
92b9dabf3c
commit
b4217fabd3
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user