From 63cd573e4b47d4a34cc36ef829a7edcdc3e1e278 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 18 Feb 2024 16:40:32 +0100 Subject: [PATCH] create output dir if it's not there --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index b47194c..def9fbd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -93,6 +93,8 @@ fn get_content(config_path: &str) -> (String, String) { fn main() { let configs = fs::read_dir("./laws").expect("No folder with config files"); + fs::create_dir_all("./output").unwrap(); + let mut li_of_files = String::new(); for config in configs { let config = config.unwrap();