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.
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).
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
thenIsFile
, and sometimes aPlatformSpecific
thenIsFile
event. This is difficult to distinguish from other platform specific events. So we changed the underlying MacOS event type InodeMetaMod to map tofsw_event_flag::Updated
(AttributeModified
might also be a good choice).