FSEvents

The FSEvents API in Mac OS X allows applications to register for notifications of changes to a given directory tree.[1] Whenever the filesystem is changed, the kernel passes notifications via the special device file /dev/fsevents to a userspace process called fseventsd. This process combines multiple changes to a single directory tree that occur within a short period of time, then notifies applications that have registered for changes to the affected directory.[2]

Until Mac OS X 10.7, FSEvents did not "watch" the filesystem, such as Linux's inotify: the API provided no notifications for changes to individual files. An application was able to register to receive changes to a given directory, and had to determine for itself which file or files were changed.[3]

Mac OS X 10.7 (Lion) added the ability to register for file modification notifications.[4]

See also

References

External links


This article is issued from Wikipedia - version of the Thursday, November 07, 2013. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.