Fix for cameras folder not getting created

This commit is contained in:
Banks Troutman
2019-11-27 01:37:50 -05:00
parent 019ad14c73
commit ebf87c8b2a

View File

@@ -94,10 +94,7 @@ public class CameraConfig {
private void checkFolder() {
if (!folderExists()) {
try {
new File(getFolderPath().toUri()).mkdirs();
Files.createDirectory(getFolderPath());
} catch (IOException e) {
if (!(new File(getFolderPath().toUri()).mkdirs())) {
System.err.println("Failed to create camera config folder: " + getFolderPath().toString());
}
}