Googling for these:
"directory changed file descriptor register manual"
yields as first hit:
http://www.squarebox.co.uk/cgi-squarebox/manServer/fcntl.2
File and directory change notification
F_NOTIFY
(Linux 2.4 onwards) Provide notification when the directory referred to by fd or any of the files that it contains is changed. The events to be notified are specified in arg, which is a bit mask specified by ORing together zero or more of the following bits:
...etc..
> Googling for these:
> "directory changed file descriptor register manual"
> yields as first hit:
> http://www.squarebox.co.uk/cgi-squarebox/manServer/fcn
> tl.2
>
>
> File and directory change notification
>
> _NOTIFY
> (Linux 2.4 onwards) Provide notification when the
> directory referred to by fd or any of the files that
> it contains is changed. The events to be notified are
> specified in arg, which is a bit mask specified by
> ORing together zero or more of the following bits:
>
>
> ...etc..
Cheers for that. I'm off to poke our BeOS evangelist in the eye for boasting that his beloved OS fired events on filesystem changes where others did not (although technically, something still must be polling, way down in the kernel....)
> Hi
>
> I have MAC OS X and want to do something like ;
> that FileSystemWatcher does in .net
>
> i am new to java please let me know the APIs or study
> area
>
> thanks
If you're only going to use this on Mac OS X, then you could just do it in Objective C and Cocoa. The documentation that comes with XCode is excellent.
If you still want to use Java, then you are going to have to learn JNI to make this work, and you'll have to probably do the underlying Mac OS work in C.
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html