mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Merge pull request #4131 from ammmze/artifact-follow-symlink
Follow symlinks when searching for artifacts
This commit is contained in:
commit
9e67bc761b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue