[Issue#] N/A
[Problem] data directory remained if preload webapp installation failed.
[Cause] N/A
[Solution] remove data directory /opt/usr/apps/[packageid]
[SCMRequest] N/A
Change-Id: I68c9326bac7bce961ad7fd8af76a20a13c1a7b96
ThrowMsg(Exceptions::RemovingFolderFailure,
"Error occurs during removing existing folder");
}
+ // Remove user data directory if preload web app.
+ std::string userData = m_context.locations->getUserDataRootDir();
+ if (0 == access(userData.c_str(), F_OK)) {
+ WrtUtilRemove(userData);
+ }
+
}
LogDebug("Rename widget path sucessful!");
}