Skip to content

Commit

Permalink
Fixed usage of directory copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Jun 14, 2018
1 parent 54d290d commit c4a6938
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cargo-cov/src/report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ fn render(config: &ReportConfig, report: &Report, interner: &Interner) -> Result
// Copy the static resources if exist.
template_path.set_file_name("static");
if template_path.is_dir() {
dir::copy(&template_path, config.output_path.join("static"), &dir::CopyOptions::new())?;
let mut options = dir::CopyOptions::new();
options.copy_inside = true;
dir::copy(&template_path, config.output_path.join("static"), &options)?;
}

template_path.set_file_name("tera");
Expand Down

0 comments on commit c4a6938

Please sign in to comment.