1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef COMMON_STEP_FILESYSTEM_STEP_REMOVE_TEMPORARY_DIRECTORY_H_
6 #define COMMON_STEP_FILESYSTEM_STEP_REMOVE_TEMPORARY_DIRECTORY_H_
8 #include <manifest_parser/utils/logging.h>
10 #include "common/step/recovery/step_recovery.h"
12 namespace common_installer {
13 namespace filesystem {
16 * @brief removes temp directories if install gets
19 * Part of Recovery Mode. If recovery mode gets called
20 * path to temporary unpack directory and its content get
23 class StepRemoveTemporaryDirectory : public recovery::StepRecovery {
25 using StepRecovery::StepRecovery;
27 Status RecoveryNew() override;
28 Status RecoveryUpdate() override;
29 Status Cleanup() override;
33 * Removes all the temporary files
37 STEP_NAME(RemoveTemporaryDirectory)
40 } // namespace filesystem
41 } // namespace common_installer
43 #endif // COMMON_STEP_FILESYSTEM_STEP_REMOVE_TEMPORARY_DIRECTORY_H_