diff options
| author | DemonKingSwarn <rockingswarn@gmail.com> | 2025-02-03 17:59:45 +0530 |
|---|---|---|
| committer | DemonKingSwarn <rockingswarn@gmail.com> | 2025-02-03 17:59:45 +0530 |
| commit | 9fbd42f43eef6fea31dfa2dbf442ac1ab40a9e67 (patch) | |
| tree | 3e416c71a60c76c1e35417bcd954da625d7e214f /Program.cs | |
| parent | ac70491939ab9dce5cce45c8c3403cd332736d98 (diff) | |
| download | hypr-wellbeing-9fbd42f43eef6fea31dfa2dbf442ac1ab40a9e67.zip hypr-wellbeing-9fbd42f43eef6fea31dfa2dbf442ac1ab40a9e67.tar.gz | |
chore: directory creation if doesnt exist
Diffstat (limited to 'Program.cs')
| -rw-r--r-- | Program.cs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"); |
