diff --git a/util/src/keys/store.rs b/util/src/keys/store.rs index 5dec27fc3..3cd85fbc2 100644 --- a/util/src/keys/store.rs +++ b/util/src/keys/store.rs @@ -184,6 +184,7 @@ impl SecretStore { /// new instance of Secret Store in specific directory pub fn new_in(path: &Path) -> Self { + ::std::fs::create_dir_all(&path).expect("Cannot access requested key directory - critical"); SecretStore { directory: KeyDirectory::new(path), unlocks: RwLock::new(HashMap::new()),