Emit event when performing a rename in InMemoryFs
This commit is contained in:
+4
-1
@@ -190,7 +190,7 @@ impl Fs for ProductionFs {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, Debug)]
|
||||
struct InMemoryEntry {
|
||||
inode: u64,
|
||||
mtime: SystemTime,
|
||||
@@ -312,6 +312,9 @@ impl InMemoryFs {
|
||||
state.entries.insert(new_path, entry);
|
||||
}
|
||||
|
||||
state.emit_event(source).await;
|
||||
state.emit_event(target).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user