Skip to content

Commit

Permalink
ensure settings dir gets created
Browse files Browse the repository at this point in the history
  • Loading branch information
inodentry committed Oct 8, 2024
1 parent 7e9fb47 commit 8d17ed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/app/mw_engine/src/settings_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ impl SettingsStore {
bail!("Don't know where config files should be saved!");
};
let path = dir.join(collection);
std::fs::create_dir_all(dir)
.with_context(|| format!("Cannot create settings dir at {:?}", dir))?;

let mut output: Vec<u8> = vec![];
writeln!(&mut output, "// This file is not meant to be edited by hand! If you mistype anything,").ok();
Expand Down

0 comments on commit 8d17ed8

Please sign in to comment.