Skip to content
Snippets Groups Projects

export bugfix release

3 files
+ 23
9
Compare changes
  • Side-by-side
  • Inline

Files

@@ -295,10 +295,18 @@ public class DevDatabaseLoader {
}
private void initRaiseRequests() throws IOException {
Path path = Path.of(RR_PROOF_DIRECTORY);
Files.walk(path)
Path proofs = Path.of(RR_PROOF_DIRECTORY);
// create proofs dir if it doesn't exist
if (!Files.exists(proofs)) {
proofs.toFile().mkdirs();
return;
}
// if everything exists, just delete all proofs
Files.walk(proofs)
.sorted(Comparator.reverseOrder())
.filter(p -> !p.equals(path))
.filter(p -> !p.equals(proofs))
.map(Path::toFile)
.forEach(File::delete);
}
Loading