Skip to content

Commit

Permalink
merge: #2634
Browse files Browse the repository at this point in the history
2634: fix(si): Ensure that the entire SI data directory path exists or create it r=stack72 a=stack72

Fixes: #2626


Co-authored-by: stack72 <[email protected]>
  • Loading branch information
si-bors-ng[bot] and stack72 authored Aug 17, 2023
2 parents b823152 + f19cfaf commit bfe6545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/si-cli/src/key_management.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ pub async fn get_si_data_dir() -> Result<PathBuf, SiCliError> {
let si_data_dir = base_dirs.data_dir().join("SI");
let si_dir_exists = si_data_dir.as_path().is_dir();
if !si_dir_exists {
fs::create_dir(si_data_dir.as_path())?;
fs::create_dir_all(si_data_dir.as_path())?;
}
return Ok(si_data_dir);
}
Expand Down

0 comments on commit bfe6545

Please sign in to comment.