Only consider backup files with the exact same filename pattern for deletion (#7004)

This commit is contained in:
ByteHamster 2024-03-20 00:08:17 +01:00 committed by GitHub
parent 53f68ca260
commit 4bc90897b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public class AutomaticDatabaseExportWorker extends Worker {
Iterator<DocumentFile> itr = files.iterator();
while (itr.hasNext()) {
DocumentFile file = itr.next();
if (!file.getName().startsWith("AntennaPod")) {
if (!file.getName().matches("AntennaPodBackup-\\d\\d\\d\\d-\\d\\d-\\d\\d\\.db")) {
itr.remove();
}
}