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

sugarsync: fix finding directories in a case insentive way #4830

Nick Craig-Wood3e188495f50e
diff --git a/backend/sugarsync/sugarsync.go b/backend/sugarsync/sugarsync.go
index ef388bc78..32335af28 100644
--- a/backend/sugarsync/sugarsync.go
+++ b/backend/sugarsync/sugarsync.go
@@ -531,7 +531,7 @@ func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut strin
//fs.Debugf(f, "FindLeaf(%q, %q)", pathID, leaf)
// Find the leaf in pathID
found, err = f.listAll(ctx, pathID, nil, func(item *api.Collection) bool {
- if item.Name == leaf {
+ if strings.EqualFold(item.Name, leaf) {
pathIDOut = item.Ref
return true
}