private static function getInfoFiles($Path, $InfoPaths)
{
$Path = str_replace('\\', '/', rtrim($Path));
$Result = [];
// Check to see if the paths exist.
foreach ($InfoPaths as $InfoPath) {
$Glob = glob($Path . $InfoPath);
if (is_array($Glob)) {
foreach ($Glob as $GlobPath) {
$Result[] = ['Name' => substr($GlobPath, strlen($Path)), 'Path' => $GlobPath];
}
}
}
return $Result;
}