From 90a305f55f506976f3d79f6d1749302d7bc91d58 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Fri, 1 Sep 2023 11:33:37 -0700 Subject: [PATCH] stop it from recreating config folder every time (was it even doing that? who knows!) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0454a0d..7ffda28 100755 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,7 +39,7 @@ pub fn create_config(file: &str) -> bool { let file_path = std::path::Path::new(&path); // Path without the filename - if file_path.parent().is_some() { + if file_path.parent().is_some() && !file_path.exists() { // if the file_path has a parent folder println!("lib::create_config: creating folder {path}"); match fs::create_dir_all(&path) {