단속연계파일 삭제 오류 수정

main
이범준 1 year ago
parent 6ae63a1c32
commit 670b47a57f

@ -71,6 +71,7 @@ public class AttachedTxtParser extends LayoutParser{
partSplitCursor++;
}
br.close();
} else {
for(int i=0; i<jsonArray.size(); i++) {

@ -62,6 +62,7 @@ public class SingleFileParser extends LayoutParser {
}
}
textReader.close();
//이미지 영역 파싱
BufferedReader imageReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), Charset.forName("ISO-8859-1")));
@ -109,6 +110,8 @@ public class SingleFileParser extends LayoutParser {
}
}
imageReader.close();
} catch (Exception e) {
throw new RuntimeException(e);
}

@ -357,7 +357,7 @@ public class CrdnBean extends AbstractComponent {
List<String> deleteFilePaths = new ArrayList<String>();
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()));

Loading…
Cancel
Save