AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Monitor filesystem for changes? Tried Netbeans Filesystems A

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.api
View previous topic :: View next topic  
Author Message
J Wilks
Guest





PostPosted: Fri Jun 11, 2004 8:47 pm    Post subject: Monitor filesystem for changes? Tried Netbeans Filesystems A Reply with quote



Anyone know of a good piece of code to monitor a filesystem for changes? I
would like to be able to pass it a file or directory handle and receive
notification when the file is changed, a file is created/renamed/deleted
within the directory, etc. Ideally, if given a directory it would monitor
recursively (reporting changes in subdirectories as well).

I tried the Netbeans Filesystems API:
http://openide.netbeans.org/fs/Library.html

However, it does not seem to detect changes made externally. In other words,
if I monitor a directory within my java app, but add a file to the directory
from outside the java app, it doesn't raise an event for that. If someone is
familiar with

I realize that catching OS filesystem events involves native code, but I'm
okay even just with code that just polls the directory for changes, as long
as I can set the interval.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java.api All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.