In C++ code, I have an array of directories being watched using the file systems events API. It works at the individual file level, that is, the FSEventStreamRef is created using the flag
Now, in the callback, I would like to specify custom callback functions for each directory being watched. But this requires knowing the specific directory being watched that triggered the event. Accessing this informaiton doesn't seem possible. The closest function I have seen is
which will return an array of paths being watched. But this isn't enough to determine the precise directory that triggered the event.