Skip to content

Commit ffb90bb

Browse files
Made sure we create the themes directory (#586)
1 parent 186e649 commit ffb90bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer/html_handlebars/hbs_renderer.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ impl HtmlHandlebars {
245245

246246
for custom_file in custom_files {
247247
let output_location = destination.join(custom_file);
248+
if let Some(parent) = output_location.parent() {
249+
fs::create_dir_all(parent)
250+
.chain_err(|| format!("Unable to create {}", parent.display()))?;
251+
}
248252
debug!(
249253
"Copying {} -> {}",
250254
custom_file.display(),

0 commit comments

Comments
 (0)