Leave partial deletes as is, this is dealt with stage purge later

This commit is contained in:
Michael Friedrich 2018-10-24 16:52:35 +02:00
parent b3fa51a5dc
commit 043824a6a9
1 changed files with 3 additions and 1 deletions

View File

@ -186,10 +186,12 @@ bool ApiListener::UpdateConfigDir(const ConfigDirInformation& oldConfigInfo, con
configChange = true; configChange = true;
String path = configDir + "/" + kv.first; String path = configDir + "/" + kv.first;
Utility::RemoveDirRecursive(path); (void) unlink(path.CStr());
} }
} }
/* Consider that one of the paths leaves an empty directory here. Such is not copied from stage to prod and purged then automtically. */
String tsPath = configDir + "/.timestamp"; String tsPath = configDir + "/.timestamp";
if (!Utility::PathExists(tsPath)) { if (!Utility::PathExists(tsPath)) {
std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc); std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc);