mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpilib] DataLogManager: Change sim location to logs subdir (#6039)
This commit is contained in:
@@ -232,7 +232,10 @@ static std::string MakeLogDir(std::string_view dir) {
|
||||
fs::create_directory("/home/lvuser/logs", ec);
|
||||
return "/home/lvuser/logs";
|
||||
#else
|
||||
return filesystem::GetOperatingDirectory();
|
||||
std::string logDir = filesystem::GetOperatingDirectory() + "/logs";
|
||||
std::error_code ec;
|
||||
fs::create_directory(logDir, ec);
|
||||
return logDir;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user