Skip to content

Commit 51949dc

Browse files
committed
Make sure 'testOutput' directory exists before accessing it.
1 parent 7830b15 commit 51949dc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example/src/main/java/org/linguafranca/pwdb/kdbx/QuickStart.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void saveKdbx() throws IOException {
8484
}
8585

8686
// save to a file with password "123"
87+
new File("testOutput").mkdirs();
8788
try (FileOutputStream outputStream = new FileOutputStream("testOutput/test.kdbx")) {
8889
database.save(new KdbxCreds("123".getBytes()), outputStream);
8990
}

0 commit comments

Comments
 (0)