mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
自動でディレクトリを作成するかを切り替えるフラグを追加
This commit is contained in:
2 files changed
+9
No files matched your search
@@ -20,6 +20,9 @@ public interface FileManager {
|
|||||||
boolean isReadable();
|
boolean isReadable();
|
||||||
Document readXml();
|
Document readXml();
|
||||||
|
|
||||||
|
// Configure
|
||||||
|
FileManager enableAutoCreate();
|
||||||
|
|
||||||
FileManager setRootDir(Path rootDir);
|
FileManager setRootDir(Path rootDir);
|
||||||
FileManager setPath(Path path);
|
FileManager setPath(Path path);
|
||||||
FileManager setPath(String path);
|
FileManager setPath(String path);
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ public class FileManagerImpl implements FileManager {
|
|||||||
// variables
|
// variables
|
||||||
private Path rootDir;
|
private Path rootDir;
|
||||||
private Path path;
|
private Path path;
|
||||||
|
private boolean autoCreate = false;
|
||||||
|
|
||||||
|
|
||||||
// Injection
|
// Injection
|
||||||
@@ -99,6 +100,11 @@ public class FileManagerImpl implements FileManager {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FileManager enableAutoCreate() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FileManager setRootDir(Path rootDir) {
|
public FileManager setRootDir(Path rootDir) {
|
||||||
this.rootDir = rootDir;
|
this.rootDir = rootDir;
|
||||||
|
|||||||
Reference in new issue
Block a user