From 0cfe6b3084897f12e3a7807a541c36444586421c Mon Sep 17 00:00:00 2001 From: Dries Samyn Date: Thu, 27 Aug 2020 08:48:08 +0100 Subject: [PATCH] Filter out tmp files (#6668) --- .../kotlin/net/corda/node/services/network/NodeInfoWatcher.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/node/src/main/kotlin/net/corda/node/services/network/NodeInfoWatcher.kt b/node/src/main/kotlin/net/corda/node/services/network/NodeInfoWatcher.kt index 428a6163d1..f21546b0bc 100644 --- a/node/src/main/kotlin/net/corda/node/services/network/NodeInfoWatcher.kt +++ b/node/src/main/kotlin/net/corda/node/services/network/NodeInfoWatcher.kt @@ -85,6 +85,7 @@ class NodeInfoWatcher(private val nodePath: Path, logger.debug { "Examining $it" } true } + .filter { !it.endsWith(".tmp") } .filter { it.isRegularFile() } .filter { file -> val lastModifiedTime = file.lastModifiedTime()