"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
vfs: do not print notice about missing poll-interval support when set to 0
albertony0574ebf44a4c
diff --git a/vfs/help.go b/vfs/help.goindex b016d6880..39b41c47d 100644--- a/vfs/help.go+++ b/vfs/help.go@@ -31,7 +31,7 @@ backend. Changes made through the mount will appear immediately orinvalidate the cache.--dir-cache-time duration Time to cache directory entries for. (default 5m0s)- --poll-interval duration Time to wait between polling for changes.+ --poll-interval duration Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable. (default 1m0s)However, changes made directly on the cloud storage by the webinterface or a different copy of rclone will only be picked up oncediff --git a/vfs/vfs.go b/vfs/vfs.goindex ab506f9ad..516596231 100644--- a/vfs/vfs.go+++ b/vfs/vfs.go@@ -222,7 +222,7 @@ func New(f fs.Fs, opt *vfscommon.Options) *VFS {vfs.pollChan = make(chan time.Duration)do(context.TODO(), vfs.root.changeNotify, vfs.pollChan)vfs.pollChan <- vfs.Opt.PollInterval- } else {+ } else if vfs.Opt.PollInterval > 0 {fs.Infof(f, "poll-interval is not supported by this remote")}