Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Alert when one directory or file is changed.

Thread view: 
Mariano2012 - 28 Mar 2007 20:30 GMT
Hello everyone!
I need to write a java application that it can alert when one
directory is changed.

For example, If one file of the directory is added, modified or
deleted, the application alert about this change.

Previously I have to determine what is the root directory.

Thanks in advance!

Mariano
usenetuser@hotmail.co.uk - 28 Mar 2007 20:44 GMT
> Hello everyone!
> I need to write a java application that it can alert when one
[quoted text clipped - 8 lines]
>
> Mariano

Thanks for letting us know what you will be doing.  I'm not sure how
much use this knowledge is to the group, though.
Mariano2012 - 28 Mar 2007 20:57 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.