From 4cf3ff5f3cd3a2b9b4579efa282a549ce1702c4e Mon Sep 17 00:00:00 2001 From: r-ca Date: Tue, 9 Jan 2024 14:24:43 +0900 Subject: [PATCH] =?UTF-8?q?createFile=E3=81=AE=E5=A0=B4=E5=90=88=E3=81=A7?= =?UTF-8?q?=E3=82=82=E8=A6=AA=E3=83=87=E3=82=A3=E3=83=AC=E3=82=AF=E3=83=88?= =?UTF-8?q?=E3=83=AA=E3=82=92=E7=94=9F=E6=88=90=E3=81=99=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 --- .../java/one/nem/lacerta/source/file/impl/FileManagerImpl.java | 3 +++ 1 file changed, 3 insertions(+) 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 b146a17a..01f0bc07 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 @@ -173,6 +173,9 @@ public class FileManagerImpl implements FileManager { @Override public FileManager createFile() throws IOException { try { + if (this.autoCreateParent) { + Files.createDirectories(this.path.getParent()); + } Files.createFile(this.path); } catch (Exception e) { logger.error("createFile", e.getMessage());