mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-19 00:21:36 +00:00
Don't delete directory for folder output, just merge
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19379
This commit is contained in:
parent
9dd0d67845
commit
9636934631
@ -36,16 +36,15 @@ bool JOBS_OUTPUT_FOLDER::HandleOutputs( const wxString& baseTempP
|
||||
{
|
||||
wxString outputPath = ExpandEnvVarSubstitutions( m_outputPath, aProject );
|
||||
|
||||
if( wxFileName::DirExists( outputPath ) )
|
||||
if( !wxFileName::DirExists( outputPath ) )
|
||||
{
|
||||
wxFileName::Rmdir( outputPath, wxPATH_RMDIR_RECURSIVE );
|
||||
if( !wxFileName::Mkdir( outputPath, wxS_DIR_DEFAULT ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool success = true;
|
||||
if( !wxFileName::Mkdir( outputPath, wxS_DIR_DEFAULT ) )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
wxString errors;
|
||||
if( !CopyDirectory( baseTempPath, outputPath, errors ) )
|
||||
|
Loading…
Reference in New Issue
Block a user