Backup cleaner now fully works

This commit is contained in:
Marc Baloup 2022-12-30 23:53:36 +01:00
parent 74cf713121
commit 2d7e7ba9b7

View File

@ -18,7 +18,7 @@ import static fr.pandacube.lib.chat.ChatStatic.text;
public abstract class BackupCleaner implements UnaryOperator<TreeSet<LocalDateTime>> { public abstract class BackupCleaner implements UnaryOperator<TreeSet<LocalDateTime>> {
private static final boolean testOnly = true; // if true, no files are deleted private static final boolean testOnly = false; // if true, no files are deleted
public static BackupCleaner KEEPING_N_LAST(int n) { public static BackupCleaner KEEPING_N_LAST(int n) {
return new BackupCleaner() { return new BackupCleaner() {