mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
ディレクトリがない場合だけ新規作成するメソッド追加 WIP
This commit is contained in:
2 files changed
+13
No files matched your search
@@ -6,6 +6,7 @@ import org.w3c.dom.Document;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.lang.reflect.Field;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -35,6 +36,8 @@ public interface FileManager {
|
|||||||
FileManager createFile(String fileName) throws IOException;
|
FileManager createFile(String fileName) throws IOException;
|
||||||
FileManager createDirectory() throws IOException;
|
FileManager createDirectory() throws IOException;
|
||||||
FileManager createDirectory(String directoryName) throws IOException;
|
FileManager createDirectory(String directoryName) throws IOException;
|
||||||
|
FileManager createDirectoryIfNotExist() throws IOException;
|
||||||
|
FileManager createDirectoryIfNotExist(String directoryName) throws IOException;
|
||||||
|
|
||||||
// Save
|
// Save
|
||||||
// XML
|
// XML
|
||||||
|
|||||||
@@ -203,6 +203,16 @@ public class FileManagerImpl implements FileManager {
|
|||||||
return this.createDirectory();
|
return this.createDirectory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FileManager createDirectoryIfNotExist() throws IOException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FileManager createDirectoryIfNotExist(String directoryName) throws IOException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// Internal
|
// Internal
|
||||||
private void saveXmlInternal(Document document) throws IOException {
|
private void saveXmlInternal(Document document) throws IOException {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user