From 8ebc96fa98395deb477308dfb4053cb190c17062 Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 12:00:16 +0900 Subject: [PATCH] =?UTF-8?q?root=E3=81=AE=E5=90=88=E8=87=B4=E3=83=81?= =?UTF-8?q?=E3=82=A7=E3=83=83=E3=82=AF=E3=82=92=E3=83=95=E3=83=A9=E3=82=B0?= =?UTF-8?q?=E3=81=A7=E5=88=87=E3=82=8A=E6=9B=BF=E3=81=88=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/one/nem/lacerta/source/file/FileManager.java | 1 + .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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 93dea306..f1899e35 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 @@ -22,6 +22,7 @@ public interface FileManager { // Configure FileManager enableAutoCreate(); + FileManager disableRootDirCheck(); FileManager setRootDir(Path rootDir); FileManager setPath(Path 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 847e1758..c4c07e9b 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 @@ -33,6 +33,7 @@ public class FileManagerImpl implements FileManager { private Path rootDir; private Path path; private boolean autoCreate = false; + private boolean disableRootDirCheck = false; // Injection @@ -116,7 +117,9 @@ public class FileManagerImpl implements FileManager { if (path.startsWith(this.rootDir)) { this.path = path; } else { - // placeholder + if (this.autoCreate) { + + } } }