Skip to content

Commit

Permalink
Fixed a bug, where it would not creat htdocs folder if it did not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyrusCompendium committed Jul 21, 2019
1 parent a684e68 commit 40abdd8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions MiniWebServer/MiniWebServer/WebServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ private bool HyperTextDocumentsExists()
if (!Directory.Exists("HyperTextDocuments"))
{
Log.Error($"{Environment.CurrentDirectory + Path.DirectorySeparatorChar}HyperTextDocuments, does not exist!");
Log.Info("Terminating WebServer");
Stop();
return false;
Log.Info("Creating HyperTextDocuments folder...");
Directory.CreateDirectory("HyperTextDocuments");
}

return true;
Expand Down

0 comments on commit 40abdd8

Please sign in to comment.