commit
dacc21e54f
|
@ -43,7 +43,7 @@ class ArchivableFilesFinder extends \FilterIterator
|
|||
{
|
||||
$fs = new Filesystem();
|
||||
|
||||
$sources = $fs->normalizePath($sources);
|
||||
$sources = $fs->normalizePath(realpath($sources));
|
||||
|
||||
if ($ignoreFilters) {
|
||||
$filters = array();
|
||||
|
@ -58,7 +58,7 @@ class ArchivableFilesFinder extends \FilterIterator
|
|||
$this->finder = new Finder();
|
||||
|
||||
$filter = function (\SplFileInfo $file) use ($sources, $filters, $fs) {
|
||||
if ($file->isLink() && strpos($file->getLinkTarget(), $sources) !== 0) {
|
||||
if ($file->isLink() && strpos($file->getRealPath(), $sources) !== 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue