1
0
Fork 0

Follow symlinks when searching for artifacts

pull/4131/head
Branden Cash 2015-06-10 11:46:08 -07:00
parent 4f80e7ff68
commit 5146085dc2
1 changed files with 1 additions and 1 deletions

View File

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