Create ledger directory if it doesn't already exist

This commit is contained in:
Michael Vines 2020-01-20 08:58:03 -07:00
parent a560d94a9f
commit 82b75796f9
1 changed files with 1 additions and 0 deletions

View File

@ -606,6 +606,7 @@ pub fn main() {
let rpc_port = value_t!(matches, "rpc_port", u16);
// 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| {
eprintln!("Unable to access ledger path: {:?}", err);
exit(1);