I see the following behaviour in TextEdit (mac os x's default text editor):
I open the file "a.txt", write in it, and save it. Here is the sequence of the events that I receive in watchdog:
on_moved './a.txt' to './a.txt.sb-4b7899e1-FtIVeh'
on_modified <parent folder>
in my code, if I follow these events, it results in deletion of a.txt (the original file) and its temporary file.
Is watchdog missing some events?
Also, any idea on how to properly handle such situations?