Skip to content

Commit

Permalink
Ensure directories are writable when generating reports from read-onl…
Browse files Browse the repository at this point in the history
…y sources
  • Loading branch information
FSchumacher committed Oct 25, 2024
1 parent 8268c1c commit 939ae3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ public FileVisitResult preVisitDirectory(Path file, BasicFileAttributes attrs)
"{}, found non empty folder with following content {}, will be ignored",
file, newDir, ex.getMessage(), newDir.toFile().listFiles());
}
if (!newDir.toFile().canWrite()) {
newDir.toFile().setWritable(true);
}
return FileVisitResult.CONTINUE;
}

Expand Down
1 change: 1 addition & 0 deletions xdocs/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Summary
<li><pr>6274</pr> Change references to old MySQL driver to new class <code>com.mysql.cj.jdbc.Driver</code></li>
<li><issue>6352</issue> Calculate delays in Open Model Thread Group and Precise Throughput
Timer relative to start of Thread Group instead of the start of the test.</li>
<li><issue>6357</issue> Ensure writable directories when copying template files while report generation.</li>
</ul>

<!-- =================== Thanks =================== -->
Expand Down

0 comments on commit 939ae3c

Please sign in to comment.