Skip to content

Commit

Permalink
Mail: Cleanup old files from attachment stage (for anonymous user)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Aug 9, 2024
1 parent b682a1a commit fb37aef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/Mail/classes/class.ilMailAttachmentStageCleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ function (SplFileInfo $file) use ($right_interval): bool {
$relative_path = 'mail/' . $file->getFilename();
if ($filesystem->has($relative_path)) {
$filesystem->delete($relative_path);
$this->logger->info('Deleting file from attachment stage: ' . $file->getPath());
$this->logger->info('Deleting file from attachment stage: ' . $file->getPathname());
}
} catch (Exception $e) {
$this->logger->error('Error deleting file from attachment stage: ' . $file->getPath());
$this->logger->error('Error deleting file from attachment stage: ' . $file->getPathname());
}
}
}
Expand Down

0 comments on commit fb37aef

Please sign in to comment.