Skip to content

Commit

Permalink
create all parent dirs too. Fixes issue #62
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaisvil committed Aug 14, 2020
1 parent a22f0b5 commit c90861a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Expand Up @@ -112,7 +112,7 @@ fn start_zenith(
let db_path = Path::new(db_path);
if !db_path.exists() {
debug!("Creating DB dir.");
fs::create_dir(db_path).expect("Couldn't Create DB dir.");
fs::create_dir_all(db_path).expect("Couldn't Create DB dir.");
}
debug!("Creating Lock");

Expand Down

0 comments on commit c90861a

Please sign in to comment.