#ifndef COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_
#define COMMON_STEP_FILESYSTEM_STEP_MOVE_INSTALLED_STORAGE_H_
+#include <filesystem>
+
#include "common/installer_context.h"
#include "common/step/step.h"
public:
using Step::Step;
+ explicit StepMoveInstalledStorage(InstallerContext* context);
+
Status process() override;
Status clean() override;
Status undo() override;
- Status precheck() override { return Status::OK; }
+ Status precheck() override;
private:
void SetTepPaths();
bool MoveTep();
bool MoveBackTep();
-
- boost::filesystem::path old_location_;
- boost::filesystem::path new_location_;
+ bool MoveExternal();
+ bool MoveBackExternal();
+ bool MoveExtended();
+ bool MoveBackExtended();
+
+ std::filesystem::path old_tep_location_;
+ std::filesystem::path new_tep_location_;
+ std::filesystem::path old_pkg_location_;
+ std::filesystem::path new_pkg_location_;
+ MoveType move_type_;
STEP_NAME(MoveInstalledStorage)
};