From 8f1d3c4ffb867bf99769e91adbd1eafb85dd6745 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 23 Mar 2018 10:12:39 +0100 Subject: [PATCH] Fix: Create store directory as well --- bin/core/imag-init/src/main.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/core/imag-init/src/main.rs b/bin/core/imag-init/src/main.rs index 356b3bca..2ad15725 100644 --- a/bin/core/imag-init/src/main.rs +++ b/bin/core/imag-init/src/main.rs @@ -94,8 +94,14 @@ fn main() { .expect("Failed to retrieve/build path for imag directory.") }); - let _ = ::std::fs::create_dir_all(path.clone()) - .expect("Failed to create directory"); + { + let mut store_path = path.clone(); + store_path.push("store"); + println!("Creating {}", store_path.display()); + + let _ = ::std::fs::create_dir_all(store_path) + .expect("Failed to create directory"); + } let config_path = { let mut config_path = path.clone();