kqueue - Specific change information.

Submitted by Anonymous
on March 28, 2008 - 4:20am

Hi, I would like to be notified of changes made within a folder but not have to rescan the folder to get an updated listing everytime I am notified of a change.

Is there a method using Kqueues by which I can monitor a folder and then, when say, a file is added retrieve that specific info? i.e, "file x added in folder y" as opposed to just getting "something happened in folder y"

If this is not possible using kqueues can anyone suggest an alternative?

Many Thanks.