register created directories recursively

This commit is contained in:
Zlatin Balevsky
2019-06-18 05:43:41 +01:00
parent 9c049b9301
commit c698cbd737

View File

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