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

This commit is contained in:
r-ca 2024-01-09 11:58:21 +09:00
parent 2233bb1a35
commit 2b8766db0a
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 9 additions and 0 deletions

View File

@ -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);

View File

@ -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;