mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-02 11:46:55 +01:00
Only consider backup files with the exact same filename pattern for deletion (#7004)
This commit is contained in:
parent
53f68ca260
commit
4bc90897b6
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user