From a4d51fc3a86ecc4f411e296afe0302712363d9d8 Mon Sep 17 00:00:00 2001 From: DemonKingSwarn Date: Mon, 3 Feb 2025 17:59:45 +0530 Subject: chore: directory creation if doesnt exist --- Program.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Program.cs') diff --git a/Program.cs b/Program.cs index d230875..15011ed 100644 --- a/Program.cs +++ b/Program.cs @@ -6,6 +6,11 @@ class Program { static void Main(string[] args) { + string homeDirectory = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); + string hyprwatchDirectory = Path.Combine(homeDirectory, ".cache", "hyprwatch"); + string dailyDataDirectory = Path.Combine(hyprwatchDirectory, "daily_data"); + Directory.CreateDirectory(dailyDataDirectory); + if (args.Length == 0 || args[0] != "-d" && args[0] != "--show") { Console.WriteLine("Usage: -d || --show"); -- cgit v1.1