configの書き込みを実装

This commit is contained in:
r-ca 2024-01-09 12:22:09 +09:00
parent 3efaf30b95
commit 37497cb1ea
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ public interface FileManager {
Document readXml();
// Configure
FileManager enableAutoCreate();
FileManager enableAutoCreateParent();
FileManager disableRootDirCheck();
FileManager setRootDir(Path rootDir);

View File

@ -32,7 +32,7 @@ public class FileManagerImpl implements FileManager {
// variables
private Path rootDir;
private Path path;
private boolean autoCreate = false;
private boolean autoCreateParent = false;
private boolean disableRootDirCheck = false;
@ -101,8 +101,8 @@ public class FileManagerImpl implements FileManager {
}
@Override
public FileManager enableAutoCreate() {
this.autoCreate = true;
public FileManager enableAutoCreateParent() {
this.autoCreateParent = true;
return this;
}