From 38db65c9d317cf47cf8d70a402186016a565916e Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 11:30:30 +0900 Subject: [PATCH] =?UTF-8?q?=E6=8C=99=E5=8B=95=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/source/file/impl/FileManagerImpl.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index bf1aa83c..372d2548 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -130,7 +130,16 @@ public class FileManagerImpl implements FileManager { @Override public void autoCreateToCurrentDir() { logger.debug("autoGenerateToCurrentDir", "called"); - autoCreateDir(currentDir); + if (isExist(currentDir)) { + return; + } + else { + try { + Files.createDirectories(currentDir); + } catch (IOException e) { + e.printStackTrace(); + } + } }