Skip to content

Commit

Permalink
Fix folders having empty names
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Jan 17, 2019
1 parent 3620a9d commit 4cfdc72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/src/rbx_snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ fn snapshot_imfs_directory<'source>(
});

let mut snapshot = if directory.children.contains(&init_path) {
snapshot_imfs_path(imfs, metadata, &init_path, Some(snapshot_name.clone()))?.unwrap()
snapshot_imfs_path(imfs, metadata, &init_path, Some(snapshot_name))?.unwrap()
} else if directory.children.contains(&init_server_path) {
snapshot_imfs_path(imfs, metadata, &init_server_path, Some(snapshot_name.clone()))?.unwrap()
snapshot_imfs_path(imfs, metadata, &init_server_path, Some(snapshot_name))?.unwrap()
} else if directory.children.contains(&init_client_path) {
snapshot_imfs_path(imfs, metadata, &init_client_path, Some(snapshot_name.clone()))?.unwrap()
snapshot_imfs_path(imfs, metadata, &init_client_path, Some(snapshot_name))?.unwrap()
} else {
RbxSnapshotInstance {
class_name: Cow::Borrowed("Folder"),
name: Cow::Borrowed(""),
name: snapshot_name,
properties: HashMap::new(),
children: Vec::new(),
source_path: Some(directory.path.to_owned()),
Expand Down

0 comments on commit 4cfdc72

Please sign in to comment.