fix:宝宝图片不删除

上级 959e09b4
......@@ -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<String> isNotExist = new ArrayList<>();
//获取所有图片名称
final List<String> picNames = getPicName(PIC_PATH);
//宝宝图片
final List<String> 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;
//指定类型的文件
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册