do not backup trade wallet if arbitrator for space saving

This commit is contained in:
woodser 2024-01-25 06:34:20 -05:00
parent 8776fecef0
commit 221a63077c
3 changed files with 6 additions and 5 deletions

View file

@ -39,6 +39,7 @@ import java.util.List;
@Slf4j
public class FileUtil {
public static void rollingBackup(File dir, String fileName, int numMaxBackupFiles) {
if (numMaxBackupFiles <= 0) return;
if (dir.exists()) {
File backupDir = new File(Paths.get(dir.getAbsolutePath(), "backup").toString());
if (!backupDir.exists())