Emit event when performing a rename in InMemoryFs

This commit is contained in:
Antonio Scandurra 2021-07-10 08:48:49 +02:00
parent 4aab70d7fb
commit 4f752a4144

View file

@ -190,7 +190,7 @@ impl Fs for ProductionFs {
} }
} }
#[derive(Clone)] #[derive(Clone, Debug)]
struct InMemoryEntry { struct InMemoryEntry {
inode: u64, inode: u64,
mtime: SystemTime, mtime: SystemTime,
@ -312,6 +312,9 @@ impl InMemoryFs {
state.entries.insert(new_path, entry); state.entries.insert(new_path, entry);
} }
state.emit_event(source).await;
state.emit_event(target).await;
Ok(()) Ok(())
} }
} }