mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 01:48:07 +08:00
Fix log folder not being created
This commit is contained in:
1 parent
b93567c7ea
commit
a07ead2142
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user