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

onedrive: disable change notify in China region since it is not supported

Nick Craig-Wood1c99661d8cfb
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go
index 29afd3976..e7674c019 100644
--- a/backend/onedrive/onedrive.go
+++ b/backend/onedrive/onedrive.go
@@ -891,6 +891,12 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, e
}).Fill(ctx, f)
f.srv.SetErrorHandler(errorHandler)
+ // Disable change polling in China region
+ // See: https://github.com/rclone/rclone/issues/6444
+ if f.opt.Region == regionCN {
+ f.features.ChangeNotify = nil
+ }
+
// Renew the token in the background
f.tokenRenewer = oauthutil.NewRenew(f.String(), ts, func() error {
_, _, err := f.readMetaDataForPath(ctx, "")