mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
新しいインスタンスを生成できるようにした
This commit is contained in:
parent
01e111bdd5
commit
36ecb3ab13
|
@ -23,6 +23,7 @@ public interface FileManager {
|
|||
boolean isReadable();
|
||||
// Get current instance
|
||||
FileManager getCurrentInstance();
|
||||
FileManager getNewInstance();
|
||||
|
||||
// Configure
|
||||
FileManager enableAutoCreateParent();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user