diff --git a/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy b/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy index a88d7d6f..ca8e0023 100644 --- a/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy +++ b/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy @@ -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) {