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()));