From 2d8c4b08f8e04c3763701a17a8d30b7fc7e21d76 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 16 Jan 2024 15:52:41 +0100 Subject: [PATCH] Fixed cleanup of attachment files --- app/src/main/java/eu/faircode/email/WorkerCleanup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/WorkerCleanup.java b/app/src/main/java/eu/faircode/email/WorkerCleanup.java index 811ae683ea..059f6e71c2 100644 --- a/app/src/main/java/eu/faircode/email/WorkerCleanup.java +++ b/app/src/main/java/eu/faircode/email/WorkerCleanup.java @@ -258,7 +258,7 @@ public class WorkerCleanup extends Worker { // Cleanup attachment files { Log.breadcrumb("worker", "cleanup", "attachment files"); - File[] attachments = new File(EntityAttachment.getRoot(context), "attachments").listFiles(); + File[] attachments = EntityAttachment.getRoot(context).listFiles(); if (attachments != null) for (File file : attachments) if (manual || file.lastModified() + KEEP_FILES_DURATION < now)