How to create directory watcher using Java 7 nio WatchService code example.
How to delete directory contents using FileVisitor in Java 7 nio? Here is a java filevisitor example explaining details with code.
How to check if directory in Java 7 nio? It is explained in this example code that uses Path class provided in java 7 nio.