mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-15 22:07:48 +08:00
Fix log folder not being created
This commit is contained in:
parent
b93567c7ea
commit
a07ead2142
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user