mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
rootの合致チェックをフラグで切り替えるように
This commit is contained in:
parent
2b8766db0a
commit
8ebc96fa98
|
@ -22,6 +22,7 @@ public interface FileManager {
|
||||||
|
|
||||||
// Configure
|
// Configure
|
||||||
FileManager enableAutoCreate();
|
FileManager enableAutoCreate();
|
||||||
|
FileManager disableRootDirCheck();
|
||||||
|
|
||||||
FileManager setRootDir(Path rootDir);
|
FileManager setRootDir(Path rootDir);
|
||||||
FileManager setPath(Path path);
|
FileManager setPath(Path path);
|
||||||
|
|
|
@ -33,6 +33,7 @@ public class FileManagerImpl implements FileManager {
|
||||||
private Path rootDir;
|
private Path rootDir;
|
||||||
private Path path;
|
private Path path;
|
||||||
private boolean autoCreate = false;
|
private boolean autoCreate = false;
|
||||||
|
private boolean disableRootDirCheck = false;
|
||||||
|
|
||||||
|
|
||||||
// Injection
|
// Injection
|
||||||
|
@ -116,7 +117,9 @@ public class FileManagerImpl implements FileManager {
|
||||||
if (path.startsWith(this.rootDir)) {
|
if (path.startsWith(this.rootDir)) {
|
||||||
this.path = path;
|
this.path = path;
|
||||||
} else {
|
} else {
|
||||||
// placeholder
|
if (this.autoCreate) {
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user