This commit is contained in:
Scott E. Graves 2024-09-23 20:42:46 -05:00
parent 72286c865f
commit 8e41f71e70

View File

@ -468,10 +468,12 @@ void base_provider::remove_deleted_files(bool source_only) {
event_system::instance().raise<orphaned_source_file_detected>( event_system::instance().raise<orphaned_source_file_detected>(
source_file->get_path()); source_file->get_path());
if (source_file->remove()) { if (not source_file->remove()) {
event_system::instance().raise<orphaned_source_file_removed>( continue;
source_file->get_path());
} }
event_system::instance().raise<orphaned_source_file_removed>(
source_file->get_path());
} }
} }