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 473cbde1..c6aed97e 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,7 +22,7 @@ public interface FileManager { Document readXml(); // Configure - FileManager enableAutoCreate(); + FileManager enableAutoCreateParent(); FileManager disableRootDirCheck(); FileManager setRootDir(Path rootDir); 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 0b0a0f47..5e01f3ae 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,7 +32,7 @@ public class FileManagerImpl implements FileManager { // variables private Path rootDir; private Path path; - private boolean autoCreate = false; + private boolean autoCreateParent = false; private boolean disableRootDirCheck = false; @@ -101,8 +101,8 @@ public class FileManagerImpl implements FileManager { } @Override - public FileManager enableAutoCreate() { - this.autoCreate = true; + public FileManager enableAutoCreateParent() { + this.autoCreateParent = true; return this; }