-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple file modified events fired per file save #27
Comments
Another interesting note: if I hit save one an empty file, then I only get one |
I also have this problem in windows, if I delete and write it is removed\added\modified. |
There seems to be no good way to solve this problem Most people use the anti-shake function call, or view the last modification time of the file. You can use procmon to check the occurrence of the event, it should also be twice.
|
Hi,
I'm testing out this nice library in an UE4 setting and noticing that while it is working quite well for
add
andremove
,modified
is firing twice whenever I update a file (save it in a text editor). Is this a known thing, or is there some way I can avoid it?Also, when I add a new file to my watched directory, I see two events: one
add
and onemodified
- perhaps this is a hint to the problem. Here is the code I'm testing with in a C++ Actor. Note I'm also printing the current frame, which is sometimes the same for the redundantmodified
event, sometimes it is a frame later.The text was updated successfully, but these errors were encountered: