From 0d8f7b854d73a364d6d8da745d25634a976136b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Wed, 10 Jul 2024 00:21:56 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/IPC/ArchiKestrel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ArchiSteamFarm/IPC/ArchiKestrel.cs b/ArchiSteamFarm/IPC/ArchiKestrel.cs index a2c8c664f..ee170f33d 100644 --- a/ArchiSteamFarm/IPC/ArchiKestrel.cs +++ b/ArchiSteamFarm/IPC/ArchiKestrel.cs @@ -435,12 +435,15 @@ internal static class ArchiKestrel { } private static async Task CreateWebApplication() { + // Try to initialize to custom www folder first string? webRootPath = Path.Combine(Directory.GetCurrentDirectory(), SharedInfo.WebsiteDirectory); if (!Directory.Exists(webRootPath)) { + // Try to initialize to standard www folder next webRootPath = Path.Combine(AppContext.BaseDirectory, SharedInfo.WebsiteDirectory); if (!Directory.Exists(webRootPath)) { + // Do not attempt to create a new directory, user has explicitly removed it webRootPath = null; } }