- if (error == FILE_ERROR_OK) {
- observer_->OnDirectoryChangedByOperation(*changed_directory_path);
- observer_->OnEntryUpdatedByOperation(*local_id);
+ if (!changed_path->empty()) {
+ FileChange changed_file;
+ changed_file.Update(*changed_path, *entry, FileChange::DELETE);
+ if (error == FILE_ERROR_OK) {
+ delegate_->OnFileChangedByOperation(changed_file);
+ delegate_->OnEntryUpdatedByOperation(*local_id);
+ }