mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Fix adding/removing files in folders that have init scripts
This commit is contained in:
@@ -94,6 +94,9 @@ impl RbxSession {
|
|||||||
trace!("Snapshotting path {}", path_to_snapshot.display());
|
trace!("Snapshotting path {}", path_to_snapshot.display());
|
||||||
|
|
||||||
let path_metadata = self.metadata_per_path.get(&path_to_snapshot).unwrap();
|
let path_metadata = self.metadata_per_path.get(&path_to_snapshot).unwrap();
|
||||||
|
|
||||||
|
trace!("Metadata for path: {:?}", path_metadata);
|
||||||
|
|
||||||
let instance_id = path_metadata.instance_id
|
let instance_id = path_metadata.instance_id
|
||||||
.expect("Instance did not exist in tree");
|
.expect("Instance did not exist in tree");
|
||||||
|
|
||||||
|
|||||||
@@ -205,12 +205,14 @@ fn snapshot_imfs_directory<'source>(
|
|||||||
properties: HashMap::new(),
|
properties: HashMap::new(),
|
||||||
children: Vec::new(),
|
children: Vec::new(),
|
||||||
metadata: MetadataPerInstance {
|
metadata: MetadataPerInstance {
|
||||||
source_path: Some(directory.path.to_owned()),
|
source_path: None,
|
||||||
ignore_unknown_instances: false,
|
ignore_unknown_instances: false,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
snapshot.metadata.source_path = Some(directory.path.to_owned());
|
||||||
|
|
||||||
for child_path in &directory.children {
|
for child_path in &directory.children {
|
||||||
let child_name = child_path
|
let child_name = child_path
|
||||||
.file_name().expect("Couldn't extract file name")
|
.file_name().expect("Couldn't extract file name")
|
||||||
|
|||||||
Reference in New Issue
Block a user