Log creation of parent dirs

This commit is contained in:
Jeremy Soller
2017-01-09 22:29:03 -07:00
parent be092f3754
commit cfdb2a4968
+2 -1
View File
@@ -71,10 +71,11 @@ fn extract_inner<T: Read>(ar: &mut Archive<T>, root: &Path) -> io::Result<()> {
let mut file = {
let mut path = root.to_path_buf();
path.push(try!(entry.path()));
println!("Extract file {}", path.display());
if let Some(parent) = path.parent() {
println!("Extract file parent {}", parent.display());
try!(fs::create_dir_all(parent));
}
println!("Extract file {}", path.display());
try!(
fs::OpenOptions::new()
.read(true)