watcher
watcher copied to clipboard
watcher is a Go package for watching for files or directory changes without using filesystem events.
I installed watcher, but running "watcher" command does nothing in the terminal except produce an error, does this tool still work? Is there something else I should do in order...
1. i run watcher 2. i run command to create a new file, but watcher read it as `DIRECTORY` 3. i run point 2 command again (with same path) then...
@radovskyb As a solution for High CPU usage for polling large directories to monitor Create/Move events `watch.FilterOps(watcher.Create, watcher.Move)` We tried the following things: - increasing the polling duration (#24) (as...
Sometimes when a file/dir which is being watched is deleted a panic will occur. This appears to be because there is an assumption that if an error returns true for...
// Look for events. go func() { w.pollEvents(fileList, evt, cancel) done
New `RegexIgnoreHook` method for excluding files with regex syntax, to prevent files from firing an event. Same syntax as `RegexFilterHook` ###### Example ```go // Ignore files that have a certain...
using this library alongside code that uses afero has been very difficult, so I decided to just add support. it adds a dependency (afero), but now you can using this...
This updates `listRecursive()` to check the ignored or hidden status of a file path before calling the filter hooks. This can have massive CPU savings if the watcher ignores a...
when a file is copied into the watched location, the event fires immediately. I need to wait until the file is completely copied before calling another function from within the...