Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit a07ead2

Browse files
committed
Fix log folder not being created
1 parent b93567c commit a07ead2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UI/Panels/LogPanel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public override void SetActive(bool active)
6262
private void SetupIO()
6363
{
6464
var path = Path.Combine(ExplorerCore.Loader.ExplorerFolder, "Logs");
65-
path = IOUtility.EnsureValidFilePath(path);
65+
//path = IOUtility.EnsureValidFilePath(path);
6666

6767
// clean old log(s)
6868
var files = Directory.GetFiles(path);
@@ -77,6 +77,7 @@ private void SetupIO()
7777

7878
var fileName = $"UnityExplorer {DateTime.Now:u}.txt";
7979
fileName = IOUtility.EnsureValidFilename(fileName);
80+
fileName = IOUtility.EnsureValidFilePath(fileName);
8081

8182
CurrentStreamPath = Path.Combine(path, fileName);
8283

0 commit comments

Comments
 (0)