UpdateModel::getInfoFiles PHP Method

getInfoFiles() private static method

private static getInfoFiles ( string $Path, array $InfoPaths ) : array
$Path string
$InfoPaths array
return array
    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;
    }