Closed ethanhos closed 2 years ago
I am not sure how it makes a difference... however, adding the files using the following command results in the above behavior, but using Notepad everything seems to be okay:
echo "ABCD" >> C:\path\xyz.txt
That's weird. I cannot reproduce it. I remember fixing something similar of what you are describing but has been fixed some time ago (see issue #111). Are you using an up to date version of the library? Can you describe the exact steps to reproduce it?
I ran the example code under Windows 10 and noticed something weird in the way events are emitted. Making a first file after the code is run under a watched folder only emits a "Modified" event, while creating any subsequent file generates two events, one "Add" and one "Modified."