mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43:15 +00:00
自動でディレクトリを作成するかを切り替えるフラグを追加
This commit is contained in:
parent
2233bb1a35
commit
2b8766db0a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user