From d354af2edff61dc70a0602e4e897657a5ea3913b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Mon, 22 Jul 2024 14:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=96=87=E4=BB=B6=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/zc/business/controller/FTPDeletion.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/FTPDeletion.java b/zc-business/src/main/java/com/zc/business/controller/FTPDeletion.java index e07e8af8..303cf72c 100644 --- a/zc-business/src/main/java/com/zc/business/controller/FTPDeletion.java +++ b/zc-business/src/main/java/com/zc/business/controller/FTPDeletion.java @@ -62,14 +62,12 @@ public class FTPDeletion { String filePath = parentDirPath + "/" + file.getName(); if (file.isDirectory()) { - System.out.println("地址"+filePath); // 如果是目录,则递归调用 // 删除30天前的文件 Instant lastModifiedTime = file.getTimestamp().toInstant(); String[] split = filePath.split("交通事件"); if (split.length>1){ if (!lastModifiedTime.isBefore(thirtyDaysAgoStartOfDay)){ - System.out.println("跳回天====="+filePath); continue; } } @@ -93,7 +91,6 @@ public class FTPDeletion { } }else { - System.out.println("跳出循环-------------------------------------"); continue; }