watcher
watcher copied to clipboard
Regex exclude files
New RegexIgnoreHook method for excluding files with regex syntax, to prevent files from firing an event. Same syntax as RegexFilterHook
Example
// Ignore files that have a certain pattern
r := regexp.MustCompile("node_modules")
w.AddFilterHook(watcher.RegexIgnoreHook(r, true))
@radovskyb Are there any plans to merge this? I am working on a project that would definitely benefit from this feature
@radovskyb any chance of merging this? :)
@radovskyb ping ❤️
Officially given up