Skip to content

Commit

Permalink
bugfix: Create reports directory if it doesn't exist
Browse files Browse the repository at this point in the history
Fixes #6870
  • Loading branch information
tgodzik committed Oct 22, 2024
1 parent 43684ec commit 0292e9b
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,9 @@ object ZipReportsProvider {
folders: List[FolderReportsZippper],
additionalToZip: List[FileToZip],
): AbsolutePath = {
val path = AbsolutePath(
folders.head.reportContext.reportsDir
.resolve(StdReportContext.ZIP_FILE_NAME)
)
val reportsDir = folders.head.reportContext.reportsDir
Files.createDirectories(reportsDir)
val path = AbsolutePath(reportsDir.resolve(StdReportContext.ZIP_FILE_NAME))
val zipOut = new ZipOutputStream(Files.newOutputStream(path.toNIO))

for {
Expand Down

0 comments on commit 0292e9b

Please sign in to comment.