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…
Reference in New Issue