SpartanJ / efsw

efsw is a C++ cross-platform file system watcher and notifier.
Other
645 stars 98 forks source link

First and subsequent files can generate different set of events (Window 10) #137

Closed ethanhos closed 2 years ago

ethanhos commented 2 years ago

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."

ethanhos commented 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

SpartanJ commented 2 years ago

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?