mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
ログ追加
This commit is contained in:
parent
9534e36a9d
commit
3affd2dd2f
|
@ -36,12 +36,16 @@ public class DocumentProcessorImpl implements DocumentProcessor{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void addNewPageToLast(Bitmap bitmap) {
|
public void addNewPageToLast(Bitmap bitmap) {
|
||||||
|
logger.debug("addNewPageToLast", "called");
|
||||||
Path path = documentDetail.getPath().getFullPath();
|
Path path = documentDetail.getPath().getFullPath();
|
||||||
String fileName = String.format(UUID.randomUUID().toString() + ".png"); // TODO-rca: 対応表をもたせる
|
String fileName = String.format(UUID.randomUUID().toString() + ".png"); // TODO-rca: 対応表をもたせる
|
||||||
|
logger.debug("addNewPageToLast", "fileName: " + fileName);
|
||||||
FileManager fileManager = fileManagerFactory.create(path);
|
FileManager fileManager = fileManagerFactory.create(path);
|
||||||
if(fileManager.getList().contains(path.resolve(DEFAULT_SAVE_DIR))) {
|
if(fileManager.getList().contains(path.resolve(DEFAULT_SAVE_DIR))) {
|
||||||
|
logger.debug("addNewPageToLast", "raw dir found");
|
||||||
fileManager.changeDir(DEFAULT_SAVE_DIR);
|
fileManager.changeDir(DEFAULT_SAVE_DIR);
|
||||||
} else {
|
} else {
|
||||||
|
logger.debug("addNewPageToLast", "raw dir not found");
|
||||||
fileManager.createDir(DEFAULT_SAVE_DIR);
|
fileManager.createDir(DEFAULT_SAVE_DIR);
|
||||||
fileManager.changeDir(DEFAULT_SAVE_DIR);
|
fileManager.changeDir(DEFAULT_SAVE_DIR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user