From 15e66d29c46bcee3de679c8f0cf02b60941c774d Mon Sep 17 00:00:00 2001 From: PopSlime Date: Tue, 15 Nov 2022 20:14:36 +0800 Subject: [PATCH] Code cleanup. --- Assets/Cryville/Common/Logger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Cryville/Common/Logger.cs b/Assets/Cryville/Common/Logger.cs index f61d421..ac68d9f 100644 --- a/Assets/Cryville/Common/Logger.cs +++ b/Assets/Cryville/Common/Logger.cs @@ -17,7 +17,7 @@ namespace Cryville.Common { public static void SetLogPath(string path) { logPath = path; var dir = new DirectoryInfo(path); - if (!dir.Exists) Directory.CreateDirectory(dir.FullName); + if (!dir.Exists) dir.Create(); } /// /// Logs to the specified logger.