Ensure directories are writable when generating reports from read-only sources

This commit is contained in:
Felix Schumacher 2024-10-04 16:26:09 +02:00
parent 8268c1c499
commit 939ae3c046
2 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,9 @@ public class TemplateVisitor extends SimpleFileVisitor<Path> {
"{}, 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;
}

View File

@ -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 =================== -->