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());