From a07ead214275a03fc46b274d452a398b5603062f Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Tue, 19 Oct 2021 04:30:35 +1100 Subject: [PATCH] Fix log folder not being created --- src/UI/Panels/LogPanel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Panels/LogPanel.cs b/src/UI/Panels/LogPanel.cs index 6f0babb..a528de8 100644 --- a/src/UI/Panels/LogPanel.cs +++ b/src/UI/Panels/LogPanel.cs @@ -62,7 +62,7 @@ namespace UnityExplorer.UI.Panels private void SetupIO() { var path = Path.Combine(ExplorerCore.Loader.ExplorerFolder, "Logs"); - path = IOUtility.EnsureValidFilePath(path); + //path = IOUtility.EnsureValidFilePath(path); // clean old log(s) var files = Directory.GetFiles(path); @@ -77,6 +77,7 @@ namespace UnityExplorer.UI.Panels var fileName = $"UnityExplorer {DateTime.Now:u}.txt"; fileName = IOUtility.EnsureValidFilename(fileName); + fileName = IOUtility.EnsureValidFilePath(fileName); CurrentStreamPath = Path.Combine(path, fileName);