diff --git a/src/helpers/extracter.rs b/src/helpers/extracter.rs index 41797210..cc2fa495 100644 --- a/src/helpers/extracter.rs +++ b/src/helpers/extracter.rs @@ -1,5 +1,5 @@ use std::borrow::Cow; -use std::fs::File; +use std::fs::{self, File}; use std::io::Read; use std::path::Path; @@ -29,6 +29,8 @@ fn untar( if desired_outputs.contains(&entry_path) { let dst = path.join(entry_path); + fs::create_dir_all(dst.parent().unwrap())?; + entry.unpack(dst)?; } }