mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Fix for cameras folder not getting created
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user