Witness icon indicating copy to clipboard operation
Witness copied to clipboard

Seemingly duplicated events for a change

Open revolter opened this issue 4 years ago • 0 comments

I added a watch to a folder (Source) with a file (first.txt), and when I change the contents of that file, I get this exact event 150 times:

▿ FileEvent
  - path : "/Users/revolt/Downloads/Source/first.txt"
  ▿ flags : Item created,Item Renamed,Item Modified,Item Change Owner,Item Is File
    - rawValue : 4282624

Maybe I'm receiving the "Item created" event for a simple content modification because of Vim, but shouldn't I receive only one "Item Modified" event?

I tried using echo "new content" > first.txt and I get a lot of times this event:

▿ FileEvent
  - path : "/Users/revolt/Downloads/Source/first.txt"
  ▿ flags : Item Inode Meta Modification,Item Modified,Item Is File
    - rawValue : 4264960

revolter avatar Sep 23 '19 06:09 revolter