This commit is contained in:
jakani24
2024-02-07 16:27:52 +01:00
parent e22e586895
commit b5b3bc06a1
30 changed files with 301 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ void process_changes(const FILE_NOTIFY_INFORMATION* pInfo) {
filename_str = "c:\\" + filename_str;
//scan the file and send it to virus_ctrl if it is a virus and then process it
std::transform(filename_str.begin(), filename_str.end(), filename_str.begin(), ::tolower);
if (is_folder_excluded(filename_str.c_str()) or is_directory(filename_str.c_str())) {
if (!is_folder_included(filename_str.c_str()) or is_directory(filename_str.c_str()) or is_folder_excluded(filename_str.c_str())) {
//dont scan excluded files or folders
return;
}