From c698cbd7370ca6b1791f24c39c52ee2d9ef8e580 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 18 Jun 2019 05:43:41 +0100 Subject: [PATCH] register created directories recursively --- .../main/groovy/com/muwire/core/files/DirectoryWatcher.groovy | 2 ++ 1 file changed, 2 insertions(+) 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) {