1
0
Fork 0

Merge pull request #4131 from ammmze/artifact-follow-symlink

Follow symlinks when searching for artifacts
pull/4093/merge
Jordi Boggiano 2015-09-18 15:32:06 +01:00
commit 9e67bc761b
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class ArtifactRepository extends ArrayRepository
{
$io = $this->io;
$directory = new \RecursiveDirectoryIterator($path);
$directory = new \RecursiveDirectoryIterator($path, \RecursiveDirectoryIterator::FOLLOW_SYMLINKS);
$iterator = new \RecursiveIteratorIterator($directory);
$regex = new \RegexIterator($iterator, '/^.+\.(zip|phar)$/i');
foreach ($regex as $file) {