Hi,

and even a bit more..... introduced in DARWIN !!!!

Regards,
Thierry
========
FSEvents API

Introduced in Mac OS X v10.5, the FSEvents API notifies your application when changes occur in the file system. You can use file system events to monitor directories for any changes, such as the creation, modification, or removal of contained files and directories. Although kqueues provide similar behavior, the FSEvents API provides a much simpler way to monitor many directories at once. For example, you can use file system events to monitor entire file system hierarchies rooted at a specific directory and still receive notifications about individual directories in the hierarchy. The implementation of file system events is lightweight and efficient, providing built-in coalescing when multiple changes occur within a short period of time to one or many directories.

The FSEvents API is not intended for detecting fine-grained changes to individual files. You would not use this to detect changes to an individual file as in a virus checker program. Instead, you might use FSEvents to detect general changes to a file hierarchy. For example, you might use this technology in backup software to detect what files changed. You might also use it to monitor a set of data files your application uses, but which can be modified by other applications as well......



Recently, Randall Lee Reetz wrote:

The suggestions posted to my questions have all required polling, which is peridic comparison of what was with what is now. This is scary inefficient
compared with getting delta messages as they occure.

Not sure if you've already come across this, but it *looks* like the
underlying principles may be what you're after (for OS X only):

"... the FSEvents API. This API provides a mechanism to notify clients about
directories they ought to re-scan in order to keep their internal data
structures up-to-date with respect to the true state of the file system. (For example, when files or directories are created, modified, or removed.) It sends these notifications "in bulk", possibly notifying the client of
changes to several directories in a single callback. By using the API,
clients can notice such changes quickly, without needing to resort to
recursive polling/scanning of the file system."

http://developer.apple.com/documentation/Darwin/Reference/ FSEvents_Ref/FSEve
nts/index.html

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to