Commit cfdb2a49 authored by Jeremy Soller's avatar Jeremy Soller

Log creation of parent dirs

parent be092f37
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment