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

union: fix poll-interval not working - fixes #2837

Nick Craig-Woodb26276b416cf
diff --git a/backend/union/union.go b/backend/union/union.go
index f080a9fcd..fa2dc37c1 100644
--- a/backend/union/union.go
+++ b/backend/union/union.go
@@ -376,6 +376,11 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
}).Fill(f)
features = features.Mask(f.wr) // mask the features just on the writable fs
+ // Really need the union of all remotes for these, so
+ // re-instate and calculate separately.
+ features.ChangeNotify = f.ChangeNotify
+ features.DirCacheFlush = f.DirCacheFlush
+
// FIXME maybe should be masking the bools here?
// Clear ChangeNotify and DirCacheFlush if all are nil