On Mar 28, 4:44 pm, usenetu...@hotmail.co.uk wrote:
> > Hello everyone!
> > I need to write a java application that it can alert when one
[quoted text clipped - 11 lines]
> Thanks for letting us know what you will be doing. I'm not sure how
> much use this knowledge is to the group, though.
Sorry I forgot to ask the following question, Does exist any
implementation that detect when a directory is modified or similar?
Regards,
Mariano
Oliver Wong - 28 Mar 2007 21:22 GMT
> Sorry I forgot to ask the following question, Does exist any
> implementation that detect when a directory is modified or similar?
Unless your OS presents you with a special API for this purpose, all
such implementations I've seen are based on polling; i.e. repeatedly
scanning the directory and/or files of interest to check if they've
changed since the last scan.
- Oliver
Alex Hunsley - 28 Mar 2007 22:00 GMT
> On Mar 28, 4:44 pm, usenetu...@hotmail.co.uk wrote:
>>
[quoted text clipped - 11 lines]
> Sorry I forgot to ask the following question, Does exist any
> implementation that detect when a directory is modified or similar?
Not that I've ever heard of, unless as Oliver says someone has done a
library to assist in this task. You might roll your own.
Did you trying searching the web for keywords like "java directory
monitoring"?
lex
p.s. the java.io.File class might be useful if you're looking at writing
your own.
Real Gagnon - 28 Mar 2007 22:57 GMT
> Sorry I forgot to ask the following question, Does exist any
> implementation that detect when a directory is modified or similar?
One example at http://www.rgagnon.com/javadetails/java-0490.html
Bye.

Signature
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript or PowerBuilder snippets
* http://www.rgagnon.com/howto.html
* http://www.rgagnon.com/bigindex.html
dagarwal82@gmail.com - 29 Mar 2007 11:56 GMT
I have written my own small utility to do this task.