Skip to content

Commit

Permalink
Merge pull request #48 from monarch-initiative/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
kingmanzhang committed Mar 19, 2018
2 parents a778263 + 5310f98 commit fa702fe
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,14 @@ public void changed(ObservableValue<? extends Boolean> observable, Boolean oldVa
if (model.getPathToAutoSavedFolder() == null) {
model.setPathToAutoSavedFolder(Loinc2HpoPlatform.getLOINC2HPODir()
+ File.separator + "Data");
model.writeSettings();
File folder = new File(model.getPathToAutoSavedFolder());
boolean created = false;
if (!folder.exists()) {
created = folder.mkdir();
}
if (created) {
model.writeSettings();
}
configurationComplete.set(isConfigurationCompleted());
}

Expand Down

0 comments on commit fa702fe

Please sign in to comment.