定時清理磁盤

merge-requests/5/head
yiming 4 years ago
parent ccb509a47e
commit 9c3815ebac

@ -36,7 +36,9 @@ public class CronTab {
} }
public static void checkFileTime(File dir,int days) { public static void checkFileTime(File dir,int days) {
if(!dir.exists()){
return;
}
if (dir.isDirectory()) { if (dir.isDirectory()) {
String[] children = dir.list(); String[] children = dir.list();
if(children.length == 0){ if(children.length == 0){

Loading…
Cancel
Save