From 670b47a57f56720f6035e9597793500627325f8d Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Wed, 18 Oct 2023 13:47:04 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=97=B0=EA=B3=84=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EC=82=AD=EC=A0=9C=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java | 1 + src/main/java/cokr/xit/fims/crdn/parsing/SingleFileParser.java | 3 +++ src/main/java/cokr/xit/fims/crdn/service/bean/CrdnBean.java | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java b/src/main/java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java index 9cb86e41..01299491 100644 --- a/src/main/java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java +++ b/src/main/java/cokr/xit/fims/crdn/parsing/AttachedTxtParser.java @@ -71,6 +71,7 @@ public class AttachedTxtParser extends LayoutParser{ partSplitCursor++; } + br.close(); } else { for(int i=0; i deleteFilePaths = new ArrayList(); walk.filter(Files::isRegularFile) - .filter(p -> p.getFileName().toString().equalsIgnoreCase(fileName)) + .filter(p -> p.toFile().getName().equalsIgnoreCase(fileName)) .collect(Collectors.toList()) .forEach(item -> deleteFilePaths.add(item.toFile().getPath()));