| ||||||||||||||||||||
Main
Travels
Contact
Mario Ivankovitsmario (at) ops (dot) at
|
JFileWatchJFileWatch tries to provide a single api to filesystem events for various operating systems. It uses JNI to interact with the os api. In case of Linux I'd say its a rather complete implementation now. The "move event" still has some limitations where I think it has something to do with limitations of inotify itself, have to have a look at it. Currently do not expect that the "move event" works in any other case than a simple "rename file" operation.
InstallationSee included README.txt for installation instructions.
Download: JFileWatch-1.2-dev-src.jar
Changelog
ExampleThe following example will recursively watch a directory.
FileWatch fw = FileWatchFactory.create();
fw.addWatch(new File("/home/im/tmp"), true);
fw.addListener(new FileWatchEventListener()
{
public void processFileWatchEvent(FileWatchEvent evt)
{
System.err.println(evt);
}
});
You could attach multiple watches and listeners to a single fileWatch instance.
Currently supported OS
TODOVolunteers wanted!!
|
|||||||||||||||||||
Contact: im-at-l3x-dot-net
Used wiki: JSPWiki v2.1.106-cvs
|
||||||||||||||||||||