diff --git a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java index 28b4cb0f13d60e2b49d6670a3d060e6e76fec0a0..317b8216eab6917cc29e0a022dc0a76663781f83 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; //指定类型的文件