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

Event not fired, Ops MUST be set #120

Open ronappleton opened 1 year ago

ronappleton commented 1 year ago

Hi, fantastic package, much appreciated.

Couple of things I have noticed with latest version 1.0.7

I am using Arch Linux

  1. The Remove event is not fired.
  2. The FilterOps MUST be set otherwise is doesn't watch anything.
PaulisMatrix commented 1 year ago

@ronappleton , observed the same thing.

Event is not fired on deletion/renaming of a file. It returns an error instead ErrWatchedFileDeleted which I feel is ambiguous.

Event fired 0xc0000241e0
Watched file is deleted/renamed!

Only event WRITE is fired on editing a file. Addition of a file event is not getting fired at all. Didn't check for rest of the events but could be an issue with those as well.