MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CopyDirectory

Function CopyDirectory

icinga-installer/icinga-installer.cpp:133–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133static bool CopyDirectory(const std::string& source, const std::string& destination)
134{
135 // SHFileOperation requires file names to be terminated with two \0s
136 std::string tmpSource = source + std::string(1, '\0');
137 std::string tmpDestination = destination + std::string(1, '\0');
138
139 SHFILEOPSTRUCT fop;
140 fop.wFunc = FO_COPY;
141 fop.pFrom = tmpSource.c_str();
142 fop.pTo = tmpDestination.c_str();
143 fop.fFlags = FOF_NO_UI;
144
145 return (SHFileOperation(&fop) == 0);
146}
147
148static bool DeleteDirectory(const std::string& dir)
149{

Callers 1

UpgradeNSISFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected