mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
新しいインスタンスを生成できるようにした
This commit is contained in:
parent
01e111bdd5
commit
36ecb3ab13
|
@ -23,6 +23,7 @@ public interface FileManager {
|
||||||
boolean isReadable();
|
boolean isReadable();
|
||||||
// Get current instance
|
// Get current instance
|
||||||
FileManager getCurrentInstance();
|
FileManager getCurrentInstance();
|
||||||
|
FileManager getNewInstance();
|
||||||
|
|
||||||
// Configure
|
// Configure
|
||||||
FileManager enableAutoCreateParent();
|
FileManager enableAutoCreateParent();
|
||||||
|
|
|
@ -139,6 +139,11 @@ public class FileManagerImpl implements FileManager {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FileManager getNewInstance() {
|
||||||
|
return this.newInstance(this.rootDir, this.rootDir, this.autoCreateParent, this.disableRootDirCheck);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileManager enableAutoCreateParent() {
|
public FileManager enableAutoCreateParent() {
|
||||||
this.autoCreateParent = true;
|
this.autoCreateParent = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user