 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
J Wilks Guest
|
Posted: Fri Jun 11, 2004 8:47 pm Post subject: Monitor filesystem for changes? Tried Netbeans Filesystems A |
|
|
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 |
|
 |
|
|
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
|
|