diff --git a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java index d69d9972..f620f239 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/FileManager.java +++ b/source/src/main/java/one/nem/lacerta/source/file/FileManager.java @@ -23,6 +23,9 @@ public interface FileManager { File createFile(String fileName); void removeFile(String fileName); + File getFile(String fileName); + File getFile(Path path); + boolean isExist(Path path); boolean isExist(String fileName); diff --git a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java index 73a126ec..7a25adef 100644 --- a/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java +++ b/source/src/main/java/one/nem/lacerta/source/file/impl/FileManagerImpl.java @@ -137,6 +137,18 @@ public class FileManagerImpl implements FileManager { currentDir.resolve(fileName).toFile().delete(); // TODO-rca: エラーハンドリング } + @Override + public File getFile(String fileName) { + logger.debug("getFile", "called"); + return currentDir.resolve(fileName).toFile(); + } + + @Override + public File getFile(Path path) { + logger.debug("getFile", "called"); + return path.toFile(); + } + @Override public boolean isExist(Path path) { logger.debug("isExist", "called");