#include "common/step/filesystem/step_remove_zip_image.h"
-#include <boost/filesystem/operations.hpp>
-#include <boost/system/error_code.hpp>
-
#include <algorithm>
+#include <filesystem>
#include <string>
#include <vector>
#include "common/utils/pkgmgr_query.h"
#include "common/utils/file_util.h"
-namespace bs = boost::system;
-namespace bf = boost::filesystem;
+namespace fs = std::filesystem;
namespace common_installer {
namespace filesystem {
}
Step::Status StepRemoveZipImage::process() {
- bf::path zip_image_path =
+ fs::path zip_image_path =
GetZipPackageLocation(context_->GetPkgPath(), context_->pkgid.get());
- if (bf::exists(zip_image_path)) {
+ if (fs::exists(zip_image_path)) {
if (Remove(zip_image_path))
LOG(INFO) << "Zip image file removed: " << zip_image_path;
}