Merge pull request #1363 from matthiasbeyer/imag-init/create-store-dir
Fix: Create store directory as well
This commit is contained in:
commit
fd91662ed9
1 changed files with 8 additions and 2 deletions
|
@ -94,8 +94,14 @@ fn main() {
|
|||
.expect("Failed to retrieve/build path for imag directory.")
|
||||
});
|
||||
|
||||
let _ = ::std::fs::create_dir_all(path.clone())
|
||||
{
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue