Fix: Create store directory as well

This commit is contained in:
Matthias Beyer 2018-03-23 10:12:39 +01:00
parent 835c003491
commit 8f1d3c4ffb

View file

@ -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();