Make sure value is correct
[MAILPOET-2535]
This commit is contained in:
committed by
Jack Kitterhing
parent
4b649a0575
commit
2f262bc8ac
@@ -13,6 +13,9 @@ class ExportFilesCleanup extends SimpleWorker {
|
||||
function processTaskStrategy(ScheduledTask $task) {
|
||||
$iterator = new \GlobIterator(Export::getExportPath() . '/' . Export::getFilePrefix() . '*.*');
|
||||
foreach ($iterator as $file) {
|
||||
if (is_string($file)) {
|
||||
continue;
|
||||
}
|
||||
$name = $file->getPathname();
|
||||
$created = $file->getMTime();
|
||||
$now = new Carbon();
|
||||
|
Reference in New Issue
Block a user