Skip to content

Commit

Permalink
fix: create intermediate directories as well (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Nov 29, 2024
1 parent eb9effd commit c09e575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl Directories {
timestamp: &DateTime<Utc>,
) -> Result<Directories, std::io::Error> {
if !output_dir.exists() {
fs::create_dir(output_dir)?;
fs::create_dir_all(output_dir)?;
}
let output_dir = canonicalize(output_dir)?;

Expand Down Expand Up @@ -197,7 +197,7 @@ impl Directories {
}

if !self.output_dir.exists() {
fs::create_dir(&self.output_dir)?;
fs::create_dir_all(&self.output_dir)?;
}

fs::create_dir_all(&self.build_dir)?;
Expand Down

0 comments on commit c09e575

Please sign in to comment.