From 3affd2dd2fec9ac15fcb3e2408d216b38b7cbb1d Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 25 Dec 2023 15:00:14 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AD=E3=82=B0=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../one/nem/lacerta/processor/impl/DocumentProcessorImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java index 189826b5..ecc2d6f9 100644 --- a/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java +++ b/processor/src/main/java/one/nem/lacerta/processor/impl/DocumentProcessorImpl.java @@ -36,12 +36,16 @@ public class DocumentProcessorImpl implements DocumentProcessor{ @Override public void addNewPageToLast(Bitmap bitmap) { + logger.debug("addNewPageToLast", "called"); Path path = documentDetail.getPath().getFullPath(); String fileName = String.format(UUID.randomUUID().toString() + ".png"); // TODO-rca: 対応表をもたせる + logger.debug("addNewPageToLast", "fileName: " + fileName); FileManager fileManager = fileManagerFactory.create(path); if(fileManager.getList().contains(path.resolve(DEFAULT_SAVE_DIR))) { + logger.debug("addNewPageToLast", "raw dir found"); fileManager.changeDir(DEFAULT_SAVE_DIR); } else { + logger.debug("addNewPageToLast", "raw dir not found"); fileManager.createDir(DEFAULT_SAVE_DIR); fileManager.changeDir(DEFAULT_SAVE_DIR); }