views:

490

answers:

2

In Windows OS, MS provides ReadDirectoryChangesW and FindFirstChangeNotification API to dectect new or modified file, does the Mac OSX provide equal function as well?

+2  A: 

OS X provides a framework called FSEvents, I don't know much about the specifics of it though.

cobbal
+5  A: 

In Mac OS X Leopard monitor file changes with the File System Events API

Mark Stock
I found the API can work only with 10.5 or above, how to support 10.3 and 10.4? Thanks in advance.
Yigang Wu
This is why I wrote Mac OS X "Leopard" (10.5) as older Mac OS versions may require ugly hacks if they don't have this new feature. From May 2005, under 10.4: http://osxbook.com/software/fslogger/
Mark Stock