Skip to content

Commit

Permalink
fix modpack generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr1Furious committed Oct 19, 2024
1 parent c932a65 commit 7b90818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modpack_builder/src/generate/extra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ fn sync_paths(from: &Path, to: &Path) -> Result<(), Box<dyn Error + Send + Sync>
from.to_string_lossy().to_string(),
)));
}

if let Some(parent) = to.parent() {
std::fs::create_dir_all(parent)?;
}

if from.is_file() && to.is_dir() {
// scary
Expand Down

0 comments on commit 7b90818

Please sign in to comment.