Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggestions/sample code for fileSystemWatcher in Java

Tags:

java

I am trying to build a fileSystemWatcher in java (similar to FileSystemWatcher in C#). Please suggest whether java has any built in framework capability for this or suggest/direct to any sample/open source projects.

like image 569
Krishna Kumar Avatar asked Apr 08 '09 14:04

Krishna Kumar


1 Answers

Check out the Apache Commons JCI FAM (FileAlterationMonitor). The unit tests should give you an idea how to use it.

like image 82
tcurdt Avatar answered Sep 27 '22 19:09

tcurdt