|
|
|
|
@ -69,6 +69,7 @@ public class CronTab {
|
|
|
|
|
File dir = new File(configProperties.getSavePath().getMediaPath());
|
|
|
|
|
long space = dir.getFreeSpace() / gByte;
|
|
|
|
|
log.info(" free space :{}",space);
|
|
|
|
|
//大于150g
|
|
|
|
|
if(space > 150){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -124,7 +125,7 @@ public class CronTab {
|
|
|
|
|
checkFileTime(new File(dir, children[i]),days);
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
//判斷時間
|
|
|
|
|
//判断时间
|
|
|
|
|
BasicFileAttributes attr = null;
|
|
|
|
|
try {
|
|
|
|
|
Path path = dir.toPath();
|
|
|
|
|
|