I am looking for the right “Hook” on Mac OS X, Linux and Windows to detect when a folder and/or file gets updated.
I am using JAVA and Object-C for the MAC.
Thanks in advance.
Also if you have any tips to go on doing this, will be truly appreciated.
Thanks in advance.
I’m not aware of any Java library that does this stuff – especially not cross platform.
On Windows the Win32 API offers such functionality though with the ReadDirectoryChanges or FindFirstChangeNotification function.
Writing a small c wrapper that’s called per JNI seems not too hard – the problem is probably finding out how to implement the basic featureset that can be supported by all three platforms.