From 2b8766db0a6346df6e9d4d0e4b62a5849b86fe48 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 11:58:21 +0900 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8B=95=E3=81=A7=E3=83=87=E3=82=A3?= =?UTF-8?q?=E3=83=AC=E3=82=AF=E3=83=88=E3=83=AA=E3=82=92=E4=BD=9C=E6=88=90?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=81=8B=E3=82=92=E5=88=87=E3=82=8A=E6=9B=BF?= =?UTF-8?q?=E3=81=88=E3=82=8B=E3=83=95=E3=83=A9=E3=82=B0=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/source/file/FileManager.java | 3 +++ .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 6 ++++++ 2 files changed, 9 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 908b6c9c..93dea306 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 @@ -20,6 +20,9 @@ public interface FileManager { boolean isReadable(); Document readXml(); + // Configure + FileManager enableAutoCreate(); + FileManager setRootDir(Path rootDir); FileManager setPath(Path path); FileManager setPath(String path); 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 6df95e32..847e1758 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 @@ -32,6 +32,7 @@ public class FileManagerImpl implements FileManager { // variables private Path rootDir; private Path path; + private boolean autoCreate = false; // Injection @@ -99,6 +100,11 @@ public class FileManagerImpl implements FileManager { return null; } + @Override + public FileManager enableAutoCreate() { + return null; + } + @Override public FileManager setRootDir(Path rootDir) { this.rootDir = rootDir;