自動でディレクトリを作成するかを切り替えるフラグを追加

This commit is contained in:
r-ca committed 2024-01-09 11:58:21 +09:00
1 parent 2233bb1a35
commit 2b8766db0a
2 files changed
+9

No files matched your search

@@ -20,6 +20,9 @@ public interface FileManager {
boolean isReadable();
Document readXml();
// Configure
FileManager enableAutoCreate();
FileManager setRootDir(Path rootDir);
FileManager setPath(Path path);
FileManager setPath(String path);
@@ -32,6 +32,7 @@ public class FileManagerImpl implements FileManager {
// variables
private Path rootDir;
private Path path;
private boolean autoCreate = false;
// Injection
@@ -99,6 +100,11 @@ public class FileManagerImpl implements FileManager {
return null;
}
@Override
public FileManager enableAutoCreate() {
return null;
}
@Override
public FileManager setRootDir(Path rootDir) {
this.rootDir = rootDir;