Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file system events



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

References: 
 >file system events (From: Adam Fisk <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.