LogDebug("backup resource directory path : " << backPath);
std::string pkgPath = m_context.locations->getPackageInstallationDir();
+ if (0 == access(backPath.c_str(), F_OK)) {
+ WrtUtilRemove(backPath);
+ }
LogDebug("copy : " << pkgPath << " to " << backPath);
if ((rename(pkgPath.c_str(), backPath.c_str())) != 0) {
LogError("Failed to rename " << pkgPath << " to " << backPath);