register created directories recursively

pull/5/head
Zlatin Balevsky 2019-06-18 05:43:41 +01:00
parent 9c049b9301
commit c698cbd737
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,8 @@ class DirectoryWatcher {
private void processCreated(Path parent, Path path) {
File f= join(parent, path)
log.fine("created entry $f")
if (f.isDirectory())
f.toPath().register(watchService, kinds)
}
private void processModified(Path parent, Path path) {