mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Misc
This commit is contained in:
parent
b9beb6ec16
commit
0d8f7b854d
1 changed files with 3 additions and 0 deletions
|
@ -435,12 +435,15 @@ internal static class ArchiKestrel {
|
|||
}
|
||||
|
||||
private static async Task<WebApplication> 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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue