Change-Id: I7cb2a593aa99f6523d2f33cf56ba8c0208bdee2b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
"signature2.xml"
};
-bool ReplacePaths(const bf::path& source, const bf::path& destination) {
- if (!bf::exists(destination.parent_path())) {
- bs::error_code error;
- bf::create_directories(destination.parent_path(), error);
- if (error) {
- LOG(ERROR) << "Failed to create destination directory for directory "
- << "backup";
- return false;
- }
- }
- if (!ci::MoveDir(source, destination)) {
- LOG(ERROR) << "Failed to move " << source << " to " << destination;
- return false;
- }
- return true;
-}
-
} // namespace
namespace tpk {