Skip to content

Commit

Permalink
Fix another error
Browse files Browse the repository at this point in the history
  • Loading branch information
RedstoneWizard08 committed Mar 21, 2023
1 parent 455c1f0 commit a8a798d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/src/instances/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,10 @@ impl Instance {
.join(self.id.to_string())
.join(path);

copy_dir_all(local_path.clone(), saved_path).unwrap();
remove_dir_all(local_path).unwrap();
if local_path.exists() {
copy_dir_all(local_path.clone(), saved_path).unwrap();
remove_dir_all(local_path).unwrap();
}
}
}
}
Expand Down

0 comments on commit a8a798d

Please sign in to comment.