Ensure parent directory exists before attempting to extract files

This commit is contained in:
Nathan Fisher 2023-07-10 09:47:36 -04:00
parent 17c25c54bc
commit b070a129f8

View File

@ -219,6 +219,12 @@ impl Node {
}
self.name.clone()
};
let p = PathBuf::from(&path);
if let Some(parent) = p.parent() {
if !parent.exists() {
self.mkdir(&parent)?;
}
}
match self.filetype {
FileType::Eof => {}
FileType::Fifo => {