mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
rootの合致チェックをフラグで切り替えるように
This commit is contained in:
2 files changed
+5
-1
No files matched your search
@@ -22,6 +22,7 @@ public interface FileManager {
|
||||
|
||||
// Configure
|
||||
FileManager enableAutoCreate();
|
||||
FileManager disableRootDirCheck();
|
||||
|
||||
FileManager setRootDir(Path rootDir);
|
||||
FileManager setPath(Path path);
|
||||
|
||||
@@ -33,6 +33,7 @@ public class FileManagerImpl implements FileManager {
|
||||
private Path rootDir;
|
||||
private Path path;
|
||||
private boolean autoCreate = false;
|
||||
private boolean disableRootDirCheck = false;
|
||||
|
||||
|
||||
// Injection
|
||||
@@ -116,7 +117,9 @@ public class FileManagerImpl implements FileManager {
|
||||
if (path.startsWith(this.rootDir)) {
|
||||
this.path = path;
|
||||
} else {
|
||||
// placeholder
|
||||
if (this.autoCreate) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user