[wpilib] DataLogManager: Change sim location to logs subdir (#6039)

This commit is contained in:
Peter Johnson
2023-12-11 20:21:06 -08:00
committed by GitHub
parent 906b810136
commit d9b504bc84
3 changed files with 13 additions and 3 deletions

View File

@@ -233,7 +233,11 @@ public final class DataLogManager {
}
return "/home/lvuser/logs";
}
return Filesystem.getOperatingDirectory().getAbsolutePath();
String logDir = Filesystem.getOperatingDirectory().getAbsolutePath() + "/logs";
if (!new File(logDir).mkdir()) {
// ignored
}
return logDir;
}
private static String makeLogFilename(String filenameOverride) {