Skip to content

Commit

Permalink
#185 Ignore files in analyzer directory
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 2, 2019
1 parent 0942846 commit f466e58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/org/thp/cortex/services/WorkerSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f466e58

Please sign in to comment.