mirror of https://github.com/M66B/FairEmail.git
Fixed cleanup of attachment files
This commit is contained in:
parent
98011c3167
commit
2d8c4b08f8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue