Skip to content

Commit

Permalink
Fixed storage directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
diptopol committed Jun 28, 2022
1 parent 143a31e commit dba2ff3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph;

import java.nio.file.Files;
import java.nio.file.Path;

import static ca.concordia.jaranalyzer.util.Utility.getJarStoragePath;

Expand All @@ -26,6 +27,8 @@ public static TinkerGraph getTinkerGraph() {

tinkerGraph = TinkerGraph.open(configuration);

FileUtils.createFolderIfAbsent(Path.of(PropertyReader.getProperty("jar.storage.directory")));

jarAnalyzer = new JarAnalyzer(tinkerGraph, getJarStoragePath());

if (!Files.exists(jarAnalyzer.getStorageFilePath())) {
Expand All @@ -46,6 +49,8 @@ public static TinkerGraph getTinkerGraph(String storageFileName) {

tinkerGraph = TinkerGraph.open(configuration);

FileUtils.createFolderIfAbsent(Path.of(PropertyReader.getProperty("jar.storage.directory")));

jarAnalyzer = new JarAnalyzer(tinkerGraph, getJarStoragePath(storageFileName));

if (!Files.exists(jarAnalyzer.getStorageFilePath())) {
Expand Down

0 comments on commit dba2ff3

Please sign in to comment.