Merge pull request #4131 from ammmze/artifact-follow-symlink
Follow symlinks when searching for artifactspull/4093/merge
commit
9e67bc761b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue