refactor
This commit is contained in:
@ -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,10 +841,11 @@ 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 {
|
||||
event_system::instance().raise<file_removed_externally>(
|
||||
item.api_path, item.source_path);
|
||||
continue;
|
||||
}
|
||||
|
||||
event_system::instance().raise<file_removed_externally>(
|
||||
item.api_path, item.source_path);
|
||||
}
|
||||
},
|
||||
stop_requested);
|
||||
|
Reference in New Issue
Block a user