emcrisostomo / fswatch

A cross-platform file change monitor with multiple backends: Apple OS X File System Events, *BSD kqueue, Solaris/Illumos File Events Notification, Linux inotify, Microsoft Windows and a stat()-based backend.
https://emcrisostomo.github.io/fswatch/
GNU General Public License v3.0
4.96k stars 327 forks source link

Map InodeMetaMod event to 'Updated' on MacOS #279

Closed dwks closed 2 years ago

dwks commented 2 years ago

We have been using fswatch to identify when files in a directory are touched (contents or timestamp modified). On MacOS, file touch events sometimes result in an fsw_event_flag::Updated then IsFile, and sometimes a PlatformSpecific then IsFile event. This is difficult to distinguish from other platform specific events. So we changed the underlying MacOS event type InodeMetaMod to map to fsw_event_flag::Updated (AttributeModified might also be a good choice).

dwks commented 2 years ago

I see this has been fixed in master. Closing pull request.