From 2c2601dd5a890ffd69adc68933ffe54183209e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Sun, 24 Sep 2023 22:34:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AE=9D=E5=AE=9D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E4=B8=8D=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kwan/springbootkwan/utils/FileContainsUtil.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java index 28b4cb0..317b821 100644 --- a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java +++ b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java @@ -30,10 +30,6 @@ public class FileContainsUtil { * 图片路径 */ private static final String PIC_PATH = "/Users/qinyingjie/Documents/idea-workspace/blogimg/"; - /** - * 宝宝图片路径 - */ - private static final String BABY_PIC_PATH = "/Users/qinyingjie/Documents/idea-workspace/study/baby-images"; /** * 博客路径1 */ @@ -63,8 +59,6 @@ public class FileContainsUtil { final List isNotExist = new ArrayList<>(); //获取所有图片名称 final List picNames = getPicName(PIC_PATH); - //宝宝图片 - final List babyPicNames = getPicName(BABY_PIC_PATH); final int size = picNames.size(); log.info("图片总数为{}", size); if (CollectionUtil.isNotEmpty(picNames)) { @@ -77,9 +71,6 @@ public class FileContainsUtil { continue outerloop; } } - if (babyPicNames.contains(picName)) { - continue outerloop; - } //默认不存在 IS_EXIST = false; //指定类型的文件 -- GitLab