feat: emit "delete" event when moving a file to the trash

This commit is contained in:
Mika Vilpas 2024-04-10 17:46:16 +03:00
parent ed91358b0e
commit 9f3229a370

View file

@ -174,7 +174,8 @@ impl Scheduler {
let file = self.file.clone();
_ = self.micro.try_send(
async move {
file.trash(FileOpTrash { id, target, length: 0 }).await.ok();
file.trash(FileOpTrash { id, target: target.clone(), length: 0 }).await.ok();
Pump::push_delete(target);
}
.boxed(),
LOW,