Create ledger directory if it doesn't already exist
This commit is contained in:
parent
a560d94a9f
commit
82b75796f9
|
@ -606,6 +606,7 @@ pub fn main() {
|
||||||
let rpc_port = value_t!(matches, "rpc_port", u16);
|
let rpc_port = value_t!(matches, "rpc_port", u16);
|
||||||
|
|
||||||
// Canonicalize ledger path to avoid issues with symlink creation
|
// Canonicalize ledger path to avoid issues with symlink creation
|
||||||
|
let _ = fs::create_dir_all(&ledger_path);
|
||||||
let ledger_path = fs::canonicalize(&ledger_path).unwrap_or_else(|err| {
|
let ledger_path = fs::canonicalize(&ledger_path).unwrap_or_else(|err| {
|
||||||
eprintln!("Unable to access ledger path: {:?}", err);
|
eprintln!("Unable to access ledger path: {:?}", err);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in New Issue