aboutsummaryrefslogtreecommitdiff
path: root/lib/fs/basicfs_watch.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fs/basicfs_watch.go')
-rw-r--r--lib/fs/basicfs_watch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fs/basicfs_watch.go b/lib/fs/basicfs_watch.go
index 83aea94e7..cc8349652 100644
--- a/lib/fs/basicfs_watch.go
+++ b/lib/fs/basicfs_watch.go
@@ -43,7 +43,7 @@ func (f *BasicFilesystem) Watch(name string, ignore Matcher, ctx context.Context
if err != nil {
return true
}
- return ignore.ShouldIgnore(rel)
+ return ignore.Match(rel).IsIgnored()
}
err = notify.WatchWithFilter(watchPath, backendChan, absShouldIgnore, eventMask)
} else {
@@ -94,7 +94,7 @@ func (f *BasicFilesystem) watchLoop(ctx context.Context, name string, roots []st
return
}
- if ignore.ShouldIgnore(relPath) {
+ if ignore.Match(relPath).IsIgnored() {
l.Debugln(f.Type(), f.URI(), "Watch: Ignoring", relPath)
continue
}