save_data: fix Backup Job including old backup in the new backup

This commit is contained in:
Vinicius Rangel 2024-09-23 02:11:48 -03:00
parent 390a8e4881
commit e7ed128d30
No known key found for this signature in database
GPG key ID: A5B154D904B761D9

View file

@ -52,7 +52,7 @@ static void backup(const std::filesystem::path& dir_name) {
std::vector<std::filesystem::path> backup_files;
for (const auto& entry : fs::directory_iterator(dir_name)) {
const auto filename = entry.path().filename();
if (filename != backup_dir) {
if (filename != ::backup_dir) {
backup_files.push_back(entry.path());
}
}