1 Reply Latest reply: Oct 11, 2012 2:22 PM by etresoft
benhj Level 1 Level 1 (0 points)

Hi there,

 

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

 

kFSEventStreamCreateFlagFileEvents

 

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

 

FSEventStreamCopyPathsBeingWatched

 

which will return an array of paths being watched. But this isn't enough to determine the precise directory that triggered the event.

 

I hope what I am trying to do makes sense.

 

Many thanks,

Ben.

 

 


Mac OS X (10.7.4)