Made sure we create the themes directory (#586)

This commit is contained in:
Michael Bryan 2018-01-26 14:38:53 +08:00 committed by GitHub
parent 186e649530
commit ffb90bb9e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -245,6 +245,10 @@ impl HtmlHandlebars {
for custom_file in custom_files { for custom_file in custom_files {
let output_location = destination.join(custom_file); let output_location = destination.join(custom_file);
if let Some(parent) = output_location.parent() {
fs::create_dir_all(parent)
.chain_err(|| format!("Unable to create {}", parent.display()))?;
}
debug!( debug!(
"Copying {} -> {}", "Copying {} -> {}",
custom_file.display(), custom_file.display(),