Reintroduce instigating paths for snapshot middleware

This commit is contained in:
Lucien Greathouse
2019-10-04 18:36:04 -07:00
parent cb3211cf46
commit 98519da7d9
17 changed files with 36 additions and 10 deletions

View File

@@ -49,6 +49,7 @@ impl SnapshotMiddleware for SnapshotRbxm {
if children.len() == 1 {
let mut snapshot = InstanceSnapshot::from_tree(&temp_tree, children[0]);
snapshot.name = Cow::Owned(instance_name);
snapshot.metadata.instigating_source = Some(entry.path().to_path_buf().into());
snapshot.metadata.relevant_paths = vec![entry.path().to_path_buf()];
Ok(Some(snapshot))