From dc89d321647fcc9483e5e9563359a5eebafc0313 Mon Sep 17 00:00:00 2001 From: WeeXnes Date: Sat, 3 May 2025 17:19:17 +0200 Subject: [PATCH] added logging --- PS2_Manager/Core/Util.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/PS2_Manager/Core/Util.cs b/PS2_Manager/Core/Util.cs index fb4d1f7..d97352c 100644 --- a/PS2_Manager/Core/Util.cs +++ b/PS2_Manager/Core/Util.cs @@ -31,8 +31,16 @@ public static class Util public static void CheckDir(string path) { - if(!Directory.Exists(path)) + Console.Info("Checking directory: " + path); + if (!Directory.Exists(path)) + { + Console.Error("Directory " + path + " wasn't found, creating now."); Directory.CreateDirectory(path); + } + else + { + Console.Success("Directory was found: " + path); + } } public static string FormatFileSize(long bytes) {