fix: Delete tmpDir during cleanup too

This commit is contained in:
Magnus Leßmann (@MarkL4YG) 2024-11-17 19:45:24 +01:00
parent 67698d9b0c
commit 885748e46d
Signed by: Mark.TwoFive
GPG key ID: 5B5EBCBE331F1E6F

View file

@ -24,5 +24,6 @@ public class OpenSSLCertificateResult implements AutoCloseable {
public void close() throws IOException { public void close() throws IOException {
LOGGER.info("Cleaning up temporary output directory {}", tmpDir); LOGGER.info("Cleaning up temporary output directory {}", tmpDir);
Files.walkFileTree(tmpDir, Set.of(), Integer.MAX_VALUE, new DeleteRecursiveFileVisitor()); Files.walkFileTree(tmpDir, Set.of(), Integer.MAX_VALUE, new DeleteRecursiveFileVisitor());
Files.deleteIfExists(tmpDir);
} }
} }