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 3a088591..41909906 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 @@ -23,6 +23,7 @@ public interface FileManager { boolean isReadable(); // Get current instance FileManager getCurrentInstance(); + FileManager getNewInstance(); // Configure FileManager enableAutoCreateParent(); 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 1781457a..18f6b595 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 @@ -139,6 +139,11 @@ public class FileManagerImpl implements FileManager { return this; } + @Override + public FileManager getNewInstance() { + return this.newInstance(this.rootDir, this.rootDir, this.autoCreateParent, this.disableRootDirCheck); + } + @Override public FileManager enableAutoCreateParent() { this.autoCreateParent = true;