adding deepscan to rtp

This commit is contained in:
jakani24
2024-06-07 08:29:24 +02:00
parent 8af5add732
commit fdaf27b8ed
19 changed files with 300 additions and 88 deletions

View File

@@ -15,6 +15,7 @@ Functions:
#include "log.h"
#include "md5hash.h"
#include "scan.h"
#include "deepscan.h"
#include "app_ctrl.h"
#include "virus_ctrl.h"
#include "settings.h"
@@ -60,6 +61,10 @@ void process_changes(const FILE_NOTIFY_INFORMATION* pInfo) {
scan_thread.detach();
Sleep(1);
if (get_setting("rtp_folder_scan:use_deepscan")) {
std::thread deepscan_thread(deepscan_file_t, filename_str);
deepscan_thread.detach();
}
}
}
}