From fbde892f4088bce7e5412e2cba3e3f3da2fcd205 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 13:52:00 +0900 Subject: [PATCH] =?UTF-8?q?ifNotExist=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 01c32484..b146a17a 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 @@ -210,12 +210,16 @@ public class FileManagerImpl implements FileManager { @Override public FileManager createDirectoryIfNotExist() throws IOException { - return null; + if (!this.isExist()) { + this.createDirectory(); + } + return this; } @Override public FileManager createDirectoryIfNotExist(String directoryName) throws IOException { - return null; + this.resolve(directoryName); + return this.createDirectoryIfNotExist(); } // Internal