Fixed cleanup of attachment files

This commit is contained in:
M66B 2024-01-16 15:52:41 +01:00
parent 98011c3167
commit 2d8c4b08f8
1 changed files with 1 additions and 1 deletions

View File

@ -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)