Adam Fisk wrote:
| Does anyone know of an open source, cross platform library for receiving
| file system events in Java? I noticed your POSIX library, Greg. Does
| it generate an event when, for example, a file is added to a directory
| or when a file in a watched directory is changed? I also need a Windows
| implementation, but if your POSIX stuff responds to those events on OSX,
| I can probably figure something else out for Windows.
I wouldn't count on any such library existing. What you're asking for is
*strongly* platform-dependent. Some OSes don't even provide such
notifications. (The POSIX standard doesn't appear to include "file system
notifications" in its feature set.)
The cross-platform solution is to start a thread going that checks the
relevant file or directory every so often to see whether it's changed.
Glen Fisher
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden