summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-20 00:08:17 +0100
committerGitHub <noreply@github.com>2024-03-20 00:08:17 +0100
commit4bc90897b6a12286d5113c7cb323159dc13c7e97 (patch)
treed1b63139410fc884bd06ccfaeecac6dc0bdbb158
parent53f68ca260c509fa5d81352f9f66ba0407a2a8a2 (diff)
downloadAntennaPod-4bc90897b6a12286d5113c7cb323159dc13c7e97.zip
Only consider backup files with the exact same filename pattern for deletion (#7004)
-rw-r--r--storage/importexport/src/main/java/de/danoeh/antennapod/storage/importexport/AutomaticDatabaseExportWorker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/importexport/src/main/java/de/danoeh/antennapod/storage/importexport/AutomaticDatabaseExportWorker.java b/storage/importexport/src/main/java/de/danoeh/antennapod/storage/importexport/AutomaticDatabaseExportWorker.java
index 6002c3bba..8d668ef43 100644
--- a/storage/importexport/src/main/java/de/danoeh/antennapod/storage/importexport/AutomaticDatabaseExportWorker.java
+++ b/storage/importexport/src/main/java/de/danoeh/antennapod/storage/importexport/AutomaticDatabaseExportWorker.java
@@ -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();
}
}