From e76b5814a24587a6b7cf90cf3fd8c343b66871bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Bizjak?= Date: Mon, 20 Nov 2023 22:20:58 +0100 Subject: [PATCH] Create directory when running create-initial-accounts. --- examples/v2_create_initial_accounts.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/v2_create_initial_accounts.rs b/examples/v2_create_initial_accounts.rs index 0af3d261e..249f1c456 100644 --- a/examples/v2_create_initial_accounts.rs +++ b/examples/v2_create_initial_accounts.rs @@ -56,6 +56,8 @@ async fn main() -> anyhow::Result<()> { App::from_clap(&matches) }; + std::fs::create_dir_all("created-accounts").context("Unable to create output directory.")?; + let ip_data: IpData = serde_json::from_str( &std::fs::read_to_string(app.idp).context("Could not read the keys file.")?, )