fix: Delete tmpDir during cleanup too

This commit is contained in:
Magnus Leßmann (@MarkL4YG) 2024-11-17 19:45:24 +01:00
parent b5571aa2e5
commit 3312710abe

View file

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