Create config dir if it doesn't exist

Fixes config not getting written if the config dir doesn't exist at the start
of the run.
This commit is contained in:
makamys committed 2023-02-25 22:51:11 +01:00
1 parent 3b047eb51b
commit 13dc9d4066
1 file changed
+1
@@ -57,6 +57,7 @@ class PropertyCollection {
boolean dirty = properties.values().stream().anyMatch(PropertyToken::isDirty);
if(dirty) {
file.getParentFile().mkdirs();
try (BufferedWriter bw = new BufferedWriter(new FileWriter(file))) {
for (Map.Entry<String, PropertyToken> e : properties.entrySet()) {
PropertyToken token = e.getValue();