radovskyb / watcher

watcher is a Go package for watching for files or directory changes without using filesystem events.
BSD 3-Clause "New" or "Revised" License
1.48k stars 183 forks source link

Allow globs for ignoring filepaths #87

Open jhand2 opened 4 years ago

jhand2 commented 4 years ago

Support filepath globbing for Watcher#Ignore.

Example: w.Ignore("/usr/bin/*")