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 ed011f9c..109f9d8a 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 @@ -174,7 +174,9 @@ public class FileManagerImpl implements FileManager { public FileManager createFile() throws IOException { try { if (this.autoCreateParent) { - Files.createDirectories(this.path.getParent()); + if (!this.path.getParent().toFile().exists()) { + Files.createDirectories(this.path.getParent()); + } } Files.createFile(this.path); } catch (Exception e) {