fix: 修改因过滤损坏照片导致附加txt和json文件被过滤的问题

This commit is contained in:
2023-07-13 20:43:41 +08:00
parent b9bb75063b
commit f4ce86f37b
2 changed files with 4 additions and 1 deletions

View File

@@ -421,6 +421,9 @@ public class DataSaveUtils {
Iterator<File> iterator = files.iterator();
while (iterator.hasNext()) {
File file = iterator.next();
if (file.getName().endsWith(".json")||file.getName().endsWith(".txt")) {
continue;
}
if (file.length()==0) {
corruptImage.add(file);
iterator.remove();