Мелкое исправление в автоматическом удалении файлов

This commit is contained in:
BelPE 2023-04-21 16:36:20 +08:00
parent f14990082a
commit 21b24c4d15
3 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class DhaverdLogs {
assert fileList != null; assert fileList != null;
for (File file : fileList){ for (File file : fileList){
String fileName = file.getName(); String fileName = file.getName();
if (!fileName.contains("gitignore")){ if (!fileName.contains("gitignore") && file.getName() != getLogFile().getName()){
if (deleteBySevenDays){ if (deleteBySevenDays){
String[] params = fileName.split("_"); String[] params = fileName.split("_");
String date = params[0]; String date = params[0];