From 13c96fd09a4fdbe3f515ea45af9f77928ce6c858 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 21 May 2023 16:51:14 +0200 Subject: [PATCH] Create Appdata Directories for API --- Tranga-API/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tranga-API/Program.cs b/Tranga-API/Program.cs index a044dd2..6356e38 100644 --- a/Tranga-API/Program.cs +++ b/Tranga-API/Program.cs @@ -6,6 +6,8 @@ string applicationFolderPath = Path.Join(Environment.GetFolderPath(Environment. string logsFolderPath = Path.Join(applicationFolderPath, "logs"); string logFilePath = Path.Join(logsFolderPath, $"log-{DateTime.Now:dd-M-yyyy-HH-mm-ss}.txt"); string settingsFilePath = Path.Join(applicationFolderPath, "data.json"); +Directory.CreateDirectory(applicationFolderPath); +Directory.CreateDirectory(logsFolderPath); Console.WriteLine($"Logfile-Path: {logFilePath}"); Console.WriteLine($"Settings-File-Path: {settingsFilePath}");