Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

Nick Craig-Woodb4217fabd3e6
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
}