Fix output paths for jobs again

This commit is contained in:
Marek Roszko
2025-01-11 19:05:45 -05:00
parent 4cfd6f71e5
commit db56d51838
7 changed files with 63 additions and 26 deletions
+9 -2
View File
@@ -463,9 +463,16 @@ wxString PATHS::GetLogsPath()
}
bool PATHS::EnsurePathExists( const wxString& aPath )
bool PATHS::EnsurePathExists( const wxString& aPath, bool aPathToFile )
{
wxFileName path( aPath );
wxString pathString = aPath;
if( !aPathToFile )
{
// ensures the path is treated fully as directory
pathString += wxFileName::GetPathSeparator();
}
wxFileName path( pathString );
if( !path.MakeAbsolute() )
{
return false;