From cd066e9b94a27f80a598653063f2ce2cd5f657d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Sat, 27 May 2023 11:55:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=88=A0=E9=99=A4=E6=B2=A1=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/kwan/springbootkwan/utils/FileContainsUtil.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java index 16d7d6b..1bcb4f1 100644 --- a/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java +++ b/src/main/java/com/kwan/springbootkwan/utils/FileContainsUtil.java @@ -13,7 +13,7 @@ import java.util.ArrayList; import java.util.List; /** - * 字符串是否存在文件中 + * 删除博客中不存在的照片 * * @author : qinyingjie * @version : 2.2.0 @@ -38,7 +38,6 @@ public class FileContainsUtil { */ private static final String[] WHITELISTS = {"http://qinyingjie.top/blogImg/image-20230324112725149.png"}; - public static void main(String[] args) throws Exception { StopWatch stopWatch = new StopWatch(); stopWatch.start("删除未用到的图片"); @@ -65,7 +64,6 @@ public class FileContainsUtil { //指定类型的文件 List suffix = new ArrayList<>(); suffix.add(".md"); -// suffix.add(".js"); //包含某个字符串 traverseFolder(BLOG_FOLDER, suffix, picName); //文件不存在 -- GitLab