TQ\Svn\Repository\Repository::resolveLocalGlobPath PHP Method

resolveLocalGlobPath() protected method

Resolves an absolute path containing glob wildcards into a path relative to the repository path
protected resolveLocalGlobPath ( array $files ) : array
$files array The list of files
return array
    protected function resolveLocalGlobPath(array $files)
    {
        $absoluteFiles = $this->resolveFullPath($files);
        $expandedFiles = array();
        foreach ($absoluteFiles as $absoluteFile) {
            $globResult = glob($absoluteFile);
            if (empty($globResult) && stripos($absoluteFile, '*') === false && !file_exists($absoluteFile)) {
                $expandedFiles[] = $absoluteFile;
            } else {
                $expandedFiles = array_merge($expandedFiles, $globResult);
            }
        }
        return $this->resolveLocalPath($expandedFiles);
    }