From b8e70cd015233227e5367b738bb9157be1736961 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 8 Jan 2024 11:14:48 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=83=9D=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=83=88=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/source/file/impl/FileManagerImpl.java | 5 +++++ 1 file changed, 5 insertions(+) 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 ea105a24..928393fb 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 @@ -80,27 +80,32 @@ public class FileManagerImpl implements FileManager { @Override public void createDir(String dirName) { //ディレクトリ作成 + logger.debug("createDir", "called"); currentDir.resolve(dirName).toFile().mkdir(); // TODO-rca: エラーハンドリング } @Override public void removeDir(String dirName) { + logger.debug("removeDir", "called"); currentDir.resolve(dirName).toFile().delete(); // TODO-rca: エラーハンドリング } @Override public File createFile(String fileName) { + logger.debug("createFile", "called"); return currentDir.resolve(fileName).toFile(); } @Override public void removeFile(String fileName) { + logger.debug("removeFile", "called"); currentDir.resolve(fileName).toFile().delete(); // TODO-rca: エラーハンドリング } @Override public void saveBitmapAtCurrent(Bitmap bitmap, String fileName) { // TODO-rca: ファイル形式を変更できるようにする? + logger.debug("saveBitmapAtCurrent", "called"); try { File file = currentDir.resolve(fileName).toFile(); bitmap.compress(Bitmap.CompressFormat.PNG, 100, Files.newOutputStream(file.toPath()));