35 const std::vector<wxString>& aPathsWithOverwriteDisallowed,
36 const std::vector<JOB_OUTPUT>& aOutputsToHandle,
37 std::optional<wxString>& aResolvedOutputPath )
39 aResolvedOutputPath.reset();
44 if( outputPath.StartsWith(
"~" ) )
45 outputPath.Replace(
"~", wxGetHomeDir(),
false );
47 if( !wxFileName::DirExists( outputPath ) )
49 if( !wxFileName::Mkdir( outputPath, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) )
51 aResolvedOutputPath.reset();
58 if( !
CopyDirectory( baseTempPath, outputPath, aPathsWithOverwriteDisallowed, errors ) )
60 aResolvedOutputPath.reset();
64 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.