From 5acb6f47e7b6184a8df0ad82fa8d141d485612fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20M=C3=B6ller?= Date: Mon, 6 Nov 2017 14:43:40 +0100 Subject: [PATCH] mountlib: log when poll-interval is ineffective Notify the user in case poll-interval is used on a unsupported remote --- vfs/vfs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vfs/vfs.go b/vfs/vfs.go index 31703bf99..598b86499 100644 --- a/vfs/vfs.go +++ b/vfs/vfs.go @@ -196,6 +196,8 @@ func New(f fs.Fs, opt *Options) *VFS { if vfs.Opt.PollInterval > 0 { if do := vfs.f.Features().DirChangeNotify; do != nil { do(vfs.root.ForgetPath, vfs.Opt.PollInterval) + } else { + fs.Logf(f, "poll-interval is not supported by this remote") } } return vfs