Fix IOUtility creating folders for file paths

This commit is contained in:
Sinai
2021-10-16 18:10:23 +11:00
parent d530d10798
commit 957d80c7ec
5 changed files with 12 additions and 11 deletions

View File

@ -62,7 +62,7 @@ namespace UnityExplorer.UI.Panels
private void SetupIO()
{
var path = Path.Combine(ExplorerCore.Loader.ExplorerFolder, "Logs");
path = IOUtility.EnsureValidDirectory(path);
path = IOUtility.EnsureValidFilePath(path);
// clean old log(s)
var files = Directory.GetFiles(path);