This commit is contained in:
2025-01-02 14:22:17 -06:00
parent 3493054f1a
commit bbe065819c

View File

@ -817,9 +817,11 @@ void encrypt_provider::remove_deleted_files(stop_type &stop_requested) {
return;
}
if (not utils::path::exists(item.source_path)) {
removed_list.emplace_back(item);
if (utils::path::exists(item.source_path)) {
continue;
}
removed_list.emplace_back(item);
}
for (const auto &item : removed_list) {
@ -839,11 +841,12 @@ void encrypt_provider::remove_deleted_files(stop_type &stop_requested) {
if (item.directory) {
event_system::instance().raise<directory_removed_externally>(
item.api_path, item.source_path);
} else {
continue;
}
event_system::instance().raise<file_removed_externally>(
item.api_path, item.source_path);
}
}
},
stop_requested);
}