refactor
This commit is contained in:
@ -817,9 +817,11 @@ void encrypt_provider::remove_deleted_files(stop_type &stop_requested) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (not utils::path::exists(item.source_path)) {
|
if (utils::path::exists(item.source_path)) {
|
||||||
removed_list.emplace_back(item);
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
removed_list.emplace_back(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &item : removed_list) {
|
for (const auto &item : removed_list) {
|
||||||
@ -839,10 +841,11 @@ void encrypt_provider::remove_deleted_files(stop_type &stop_requested) {
|
|||||||
if (item.directory) {
|
if (item.directory) {
|
||||||
event_system::instance().raise<directory_removed_externally>(
|
event_system::instance().raise<directory_removed_externally>(
|
||||||
item.api_path, item.source_path);
|
item.api_path, item.source_path);
|
||||||
} else {
|
continue;
|
||||||
event_system::instance().raise<file_removed_externally>(
|
|
||||||
item.api_path, item.source_path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
event_system::instance().raise<file_removed_externally>(
|
||||||
|
item.api_path, item.source_path);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
stop_requested);
|
stop_requested);
|
||||||
|
Reference in New Issue
Block a user