Skip to content
Snippets Groups Projects
Commit c5282d12 authored by Greg DiCristofaro's avatar Greg DiCristofaro
Browse files

create parent folders in test

parent f2f9c30b
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,10 @@ public void testBottomUpDiff() {
String tempDirPath = dbFile.getAbsolutePath();
String dbPath = DataModelTestSuite.buildPath(tempDirPath, title, DataModelTestSuite.BTTMUP, ".db");
dbFile.delete();
if (dbFile.getParentFile() != null) {
dbFile.getParentFile().mkdirs();
}
SleuthkitCase sk = SleuthkitCase.newCase(dbPath);
String timezone = "";
title = title + DataModelTestSuite.BTTMUP + ".txt";
......
......@@ -245,6 +245,9 @@ public static void setUpClass() {
// Delete the DB file, in case
java.io.File dbFile = new java.io.File(dbPath);
dbFile.delete();
if (dbFile.getParentFile() != null) {
dbFile.getParentFile().mkdirs();
}
// Create new case db
caseDB = SleuthkitCase.newCase(dbPath);
......
......@@ -122,6 +122,10 @@ public static void createOutput(String outputPath, String tempDirPath, List<Stri
standardFile.createNewFile();
java.io.File dbFile = new java.io.File(dbPath);
dbFile.delete();
if (dbFile.getParentFile() != null) {
dbFile.getParentFile().mkdirs();
}
SleuthkitCase sk = SleuthkitCase.newCase(dbPath);
String timezone = "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment