mirror of
https://github.com/rclone/rclone
synced 2025-01-04 05:06:24 +01:00
mountlib: log when poll-interval is ineffective
Notify the user in case poll-interval is used on a unsupported remote
This commit is contained in:
parent
409ba56fde
commit
5acb6f47e7
@ -196,6 +196,8 @@ func New(f fs.Fs, opt *Options) *VFS {
|
|||||||
if vfs.Opt.PollInterval > 0 {
|
if vfs.Opt.PollInterval > 0 {
|
||||||
if do := vfs.f.Features().DirChangeNotify; do != nil {
|
if do := vfs.f.Features().DirChangeNotify; do != nil {
|
||||||
do(vfs.root.ForgetPath, vfs.Opt.PollInterval)
|
do(vfs.root.ForgetPath, vfs.Opt.PollInterval)
|
||||||
|
} else {
|
||||||
|
fs.Logf(f, "poll-interval is not supported by this remote")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return vfs
|
return vfs
|
||||||
|
Loading…
Reference in New Issue
Block a user