PMCORE-618

This commit is contained in:
Paula Quispe
2022-04-19 15:25:47 -04:00
parent e79f5ac1cc
commit 241b62a3d6

View File

@@ -332,6 +332,7 @@ class AuditLog
*/
private function getFiles($path, $pattern = '', $dir = 'ASC')
{
try {
$finder = new Finder();
$finder->files()
->in($path)
@@ -347,6 +348,10 @@ class AuditLog
}
});
return $files;
} catch (Exception $e) {
// Return array empty when the path does not exist
return [];
}
}
/**