Skip to content

Commit

Permalink
codegen: BaseCodeGenerator#doWriteToFile: create directories needed b…
Browse files Browse the repository at this point in the history
…efore attempting to write to file
  • Loading branch information
nafg committed Jul 17, 2020
1 parent d0a4153 commit 895ac0d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ trait BaseCodeGenerator {
val code =
try Await.result(db.run(codeString(rules, slickConfig.getString("profile"))), Duration.Inf)
finally db.close()
Files.createDirectories(path.getParent)
Files.write(path, code.getBytes())
}
}

0 comments on commit 895ac0d

Please sign in to comment.