Skip to content
Snippets Groups Projects
Commit 95862e0c authored by Florian Angerer's avatar Florian Angerer
Browse files

Fix: Check if output dir is writable.

parent 56c3e916
Branches
No related tags found
No related merge requests found
......@@ -62,7 +62,11 @@ public class HTMLDumper extends AbstractDumper {
if (!Files.exists(destDir)) {
Files.createDirectories(destDir);
}
return Files.isWritable(destDir);
// test creating a file in the output directory
Path testFile = destDir.resolve("test.html");
Files.createFile(testFile);
Files.deleteIfExists(testFile);
return true;
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment