From e055f8fe9ea62c84d26f02acab76ef2c9c5667f5 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 13:49:46 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=83=AA=E3=81=8C=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=A0?= =?UTF-8?q?=E3=81=91=E6=96=B0=E8=A6=8F=E4=BD=9C=E6=88=90=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=83=A1=E3=82=BD=E3=83=83=E3=83=89=E8=BF=BD=E5=8A=A0=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/one/nem/lacerta/source/file/FileManager.java | 3 +++ .../nem/lacerta/source/file/impl/FileManagerImpl.java | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java index cad34d3b..f996e781 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java +++ b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java @@ -6,6 +6,7 @@ import org.w3c.dom.Document; import java.io.File; import java.io.IOException; +import java.lang.reflect.Field; import java.nio.file.Path; import java.util.List; @@ -35,6 +36,8 @@ public interface FileManager { FileManager createFile(String fileName) throws IOException; FileManager createDirectory() throws IOException; FileManager createDirectory(String directoryName) throws IOException; + FileManager createDirectoryIfNotExist() throws IOException; + FileManager createDirectoryIfNotExist(String directoryName) throws IOException; // Save // XML 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 21987841..71826eb2 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 @@ -203,6 +203,16 @@ public class FileManagerImpl implements FileManager { return this.createDirectory(); } + @Override + public FileManager createDirectoryIfNotExist() throws IOException { + return null; + } + + @Override + public FileManager createDirectoryIfNotExist(String directoryName) throws IOException { + return null; + } + // Internal private void saveXmlInternal(Document document) throws IOException { try {