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

box: fix NewObject for files that differ in case #4830

Nick Craig-Wood4acd68188b2b
diff --git a/backend/box/box.go b/backend/box/box.go
index a1a6096df..7edeaacbf 100644
--- a/backend/box/box.go
+++ b/backend/box/box.go
@@ -339,7 +339,7 @@ func (f *Fs) readMetaDataForPath(ctx context.Context, path string) (info *api.It
}
found, err := f.listAll(ctx, directoryID, false, true, func(item *api.Item) bool {
- if item.Name == leaf {
+ if strings.EqualFold(item.Name, leaf) {
info = item
return true
}