71 wxString srcDir = base.
path + wxFileName::GetPathSeparator() + wxS(
"src" );
72 BOOST_REQUIRE( wxFileName::Mkdir( srcDir, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) );
74 wxString srcFile = srcDir + wxFileName::GetPathSeparator() + wxS(
"payload.txt" );
78 f.Write( wxS(
"hello" ) );
82 wxString nestedDir = base.
path + wxFileName::GetPathSeparator() + wxS(
"level1" )
83 + wxFileName::GetPathSeparator() + wxS(
"level2" );
84 wxString outPath = nestedDir + wxFileName::GetPathSeparator() + wxS(
"archive.zip" );
91 std::vector<wxString> noOverwriteList;
92 std::vector<JOB_OUTPUT> outputs;
93 std::optional<wxString> resolved;
95 bool ok = archive.
HandleOutputs( srcDir,
nullptr, noOverwriteList, outputs, resolved );
99 "Nested parent directory should have been created." );
101 BOOST_CHECK( wxFileName::FileExists( resolved.value() ) );
113 wxString srcDir = base.
path + wxFileName::GetPathSeparator() + wxS(
"src" );
114 BOOST_REQUIRE( wxFileName::Mkdir( srcDir, wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL ) );
116 wxString srcFile = srcDir + wxFileName::GetPathSeparator() + wxS(
"payload.txt" );
120 f.Write( wxS(
"hello" ) );
123 wxString outPath = base.
path + wxFileName::GetPathSeparator() + wxS(
"archive.zip" );
128 std::vector<wxString> noOverwriteList;
129 std::vector<JOB_OUTPUT> outputs;
130 std::optional<wxString> resolved;
132 bool ok = archive.
HandleOutputs( srcDir,
nullptr, noOverwriteList, outputs, resolved );
136 BOOST_CHECK( wxFileName::FileExists( resolved.value() ) );
bool HandleOutputs(const wxString &aBaseTempPath, PROJECT *aProject, const std::vector< wxString > &aPathsWithOverwriteDisallowed, const std::vector< JOB_OUTPUT > &aOutputsToHandle, std::optional< wxString > &aResolvedOutputPath) override