This commit is contained in:
Nikolay Volf 2016-05-13 18:36:18 +03:00
parent 7c19930efa
commit 96496d6349

View File

@ -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,