watcher icon indicating copy to clipboard operation
watcher copied to clipboard

watcher is a Go package for watching for files or directory changes without using filesystem events.

Results 55 watcher issues
Sort by recently updated
recently updated
newest added

Support filepath globbing for `Watcher#Ignore`. Example: `w.Ignore("/usr/bin/*")`

Hi, Thanks for this great package! I've try to reproduce your example but I couldn't make it work at first because of this missing "line". I hope it will help...

Hi, I have uploaded a sample go code which contains logic to handle different File Watcher events. Suppose, If I delete a File which is being watched already, the logic...

Hello, may I use regular expressions to ignore files or directories

Don't want him to back out and help

I have a scenario, where I want to move a large file (4GB) to an S3 bucket once it's written to a watched directory on the local disk. The process...

Hi! I was wondering if this was on the roadmap, or actively avoided? I am having issues where it seems like users may have other tools running that would touch...

I update the code to support symlink files. If the folder includes symlink it will follow and monitor the pointed file. func (w *Watcher) list(name string) (map[string]os.FileInfo, error) { fileList...

missing import "regexp" in example

I added a filter hook as follows ``` autogen_skipper := func(info os.FileInfo, fullPath string) error { if info.IsDir() && info.Name() == "autogen" { log.Error(ctx, "skipping autogen") return watcher.ErrSkip } log.Error(ctx,...