35 const std::vector<wxString>& aPathsWithOverwriteDisallowed,
36 const std::vector<JOB_OUTPUT>& aOutputsToHandle,
37 std::optional<wxString>& aResolvedOutputPath )
39 aResolvedOutputPath.reset();
42 outputPath.Replace( wxT(
"\\" ), wxT(
"/" ) );
46 if( outputPath.StartsWith(
"~" ) )
47 outputPath.Replace(
"~", wxGetHomeDir(),
false );
49 if( !wxFileName::DirExists( outputPath ) )
51 if( !wxFileName::Mkdir( outputPath, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) )
53 aResolvedOutputPath.reset();
60 if( !
CopyDirectory( baseTempPath, outputPath, aPathsWithOverwriteDisallowed, errors ) )
62 aResolvedOutputPath.reset();
66 aResolvedOutputPath = outputPath;
bool HandleOutputs(const wxString &aBaseTempPath, PROJECT *aProject, const std::vector< wxString > &aPathsWithOverwriteDisallowed, const std::vector< JOB_OUTPUT > &aOutputsToHandle, std::optional< wxString > &aResolvedOutputPath) override
bool CopyDirectory(const wxString &aSourceDir, const wxString &aDestDir, const std::vector< wxString > &aPathsWithOverwriteDisallowed, wxString &aErrors)
Copy a directory and its contents to another directory.