fix: record delete operations

This commit is contained in:
iceBear67 committed 2026-07-17 20:13:13 +08:00
1 parent f9de570f25
commit ea92ae5e2b
13 files changed
+240 -37

No files matched your search

@@ -129,6 +129,12 @@ public class JustBackupMod implements ModInitializer, FileWatcherThread.Listener
if (subject != null) subject.addChanged(file);
}
@Override
public void onDelete(String subjectName, Path file) {
var subject = backupSubjects.get(subjectName);
if (subject != null) subject.addDeleted(file);
}
@Override
public void onOverflow(String subjectName) {
var subject = backupSubjects.get(subjectName);