Skip to content

Commit 70d4556

Browse files
Restore create_dir_all method for directory creation (#19)
## Summary Ports alexcrichton/tar-rs#260 to the `async-tar` crate.
1 parent 6cf9dc0 commit 70d4556

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ impl<R: Read + Unpin> EntryFields<R> {
907907
if let Some(parent) = ancestor.parent() {
908908
self.validate_inside_dst(dst, parent).await?;
909909
}
910-
fs::create_dir(ancestor).await?;
910+
fs::create_dir_all(ancestor).await?;
911911
}
912912
Ok(())
913913
}

0 commit comments

Comments
 (0)