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 e0b5121e..3faa5b7e 100644 --- a/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy +++ b/core/src/main/groovy/com/muwire/core/files/DirectoryWatcher.groovy @@ -91,6 +91,8 @@ class DirectoryWatcher { log.fine("created entry $f") if (f.isDirectory()) f.toPath().register(watchService, kinds) + else + waitingFiles.put(f, System.currentTimeMillis()) } private void processModified(Path parent, Path path) {