septag / dmon

Single header C99 portable library for monitoring filesystem changes. (Windows/Linux/MacOS)
BSD 2-Clause "Simplified" License
228 stars 19 forks source link

Modified files reported as a "create" event on MacOS 14.1.1 on M1 #28

Open adeopura4 opened 7 months ago

adeopura4 commented 7 months ago

If you modify a file in a watched directory, it is reported as a "create" event. I used a textedit file and changed some text, and saw that this was reported as a "create" event.

Possibly related: https://github.com/septag/dmon/issues/25, https://github.com/emcrisostomo/fswatch/pull/279

septag commented 7 months ago

I'll look into this in the weekend. But I just have to note that each program behaves differently when saving files. I'll check again for textedit, but I think it was one of those programs that does some weird stuff when saving, like recreating files, copy over a tmp file and whatnot .. you can also check the same file with a different program like vscode for example.