by ref
This commit is contained in:
parent
7c19930efa
commit
96496d6349
@ -291,9 +291,10 @@ impl Configuration {
|
||||
pub fn directories(&self) -> Directories {
|
||||
let db_path = Configuration::replace_home(
|
||||
&self.args.flag_datadir.as_ref().unwrap_or(&self.args.flag_db_path));
|
||||
std::fs::create_dir_all(db_path).unwrap_or_else(|e| die_with_io_error(e));
|
||||
::std::fs::create_dir_all(&db_path).unwrap_or_else(|e| die_with_io_error("main", e));
|
||||
|
||||
let keys_path = Configuration::replace_home(&self.args.flag_keys_path);
|
||||
::std::fs::create_dir_all(&db_path).unwrap_or_else(|e| die_with_io_error("main", e));
|
||||
|
||||
Directories {
|
||||
keys: keys_path,
|
||||
|
Loading…
Reference in New Issue
Block a user