mirror of
https://github.com/usatiuk/backup.git
synced 2025-10-26 17:37:47 +01:00
14 lines
337 B
C++
14 lines
337 B
C++
//
|
|
// Created by Stepan Usatiuk on 14.04.2023.
|
|
//
|
|
|
|
#include "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); }
|
|
}
|