mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 09:27:48 +01:00
proper cmake
This commit is contained in:
17
tests/utils/srcs/Cleaner.cpp
Normal file
17
tests/utils/srcs/Cleaner.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// Created by Stepan Usatiuk on 14.04.2023.
|
||||
//
|
||||
|
||||
#include "../includes/Cleaner.h"
|
||||
|
||||
Cleaner::Cleaner(std::vector<std::filesystem::path> toClean) : toClean(std::move(toClean)) {
|
||||
for (const auto &p: this->toClean) {
|
||||
std::filesystem::remove_all(p);
|
||||
}
|
||||
}
|
||||
|
||||
Cleaner::~Cleaner() {
|
||||
for (const auto &p: toClean) {
|
||||
std::filesystem::remove_all(p);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user