diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-20 00:08:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-20 00:08:17 +0100 |
commit | 4bc90897b6a12286d5113c7cb323159dc13c7e97 (patch) | |
tree | d1b63139410fc884bd06ccfaeecac6dc0bdbb158 | |
parent | 53f68ca260c509fa5d81352f9f66ba0407a2a8a2 (diff) | |
download | AntennaPod-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.java | 2 |
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(); } } |