Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit e24e193

Browse files
committed
Add result dir creation
1 parent deb46b5 commit e24e193

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/benchmark/GraphBenchmark.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import java.io.FileOutputStream;
1010
import java.io.IOException;
1111
import java.io.PrintWriter;
12+
import java.nio.file.Files;
1213
import java.util.List;
1314

1415
public class GraphBenchmark {
@@ -63,6 +64,7 @@ void benchmark() throws IOException {
6364
problem.toString(),
6465
graphStorage.toString())
6566
);
67+
Files.createDirectories(outFile.toPath().getParent());
6668
boolean fileExists = !outFile.createNewFile();
6769
System.out.printf("Benchmarking %s for %s graph%n", problem, datasetName);
6870
try (PrintWriter outStatsTime = new PrintWriter(new FileOutputStream(outFile, true), true)) {

0 commit comments

Comments
 (0)