I'm trying to understand how to use the kFSEventStreamEventFlagEventIdsWrapped
event flag with FSEvents
.
According to the documentation, the flag is sent to registered instances when the event id counter wraps around, thus rendering previous event id obsolete.
Now let's imagine the following scenario:
- I register for
FSEvents
in my application; - When done processing
FSEvents
(my application quits for instance), I save the last event id encountered while processing events to be able to replay changes from that id; - While my application is not running, the event id counter wraps around.
My question is: How am I supposed to know the counter wrapped around? (Thus requiring me to re-scan the whole directory structure.)