Fixed cleanup of attachment files

pull/214/head
M66B 12 months ago
parent 98011c3167
commit 2d8c4b08f8

@ -258,7 +258,7 @@ public class WorkerCleanup extends Worker {
// Cleanup attachment files // Cleanup attachment files
{ {
Log.breadcrumb("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) if (attachments != null)
for (File file : attachments) for (File file : attachments)
if (manual || file.lastModified() + KEEP_FILES_DURATION < now) if (manual || file.lastModified() + KEEP_FILES_DURATION < now)

Loading…
Cancel
Save