From f466e58c800c5ddbaeabe64e1ea267cf3577f5f4 Mon Sep 17 00:00:00 2001 From: To-om Date: Thu, 2 May 2019 13:58:18 +0200 Subject: [PATCH] #185 Ignore files in analyzer directory --- app/org/thp/cortex/services/WorkerSrv.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/app/org/thp/cortex/services/WorkerSrv.scala b/app/org/thp/cortex/services/WorkerSrv.scala index d5ca255c8..457256964 100644 --- a/app/org/thp/cortex/services/WorkerSrv.scala +++ b/app/org/thp/cortex/services/WorkerSrv.scala @@ -160,6 +160,7 @@ class WorkerSrv @Inject() ( def readDirectory(path: Path, workerType: WorkerType.Type): Seq[WorkerDefinition] = { for { workerDir ← Files.newDirectoryStream(path).asScala.toSeq + if Files.isDirectory(workerDir) infoFile ← Files.newDirectoryStream(workerDir, "*.json").asScala workerDefinition ← readFile(infoFile, workerType) } yield workerDefinition