Skip to content

Commit 2516175

Browse files
committed
Add follow symlinks to support linked folders
1 parent 70cf0c2 commit 2516175

File tree

1 file changed

+4
-1
lines changed
  • lib/internal/Magento/Framework/Filesystem/Driver

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/Filesystem/Driver/File.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ private function mkdirRecursive($path, $permissions = 0777)
254254
public function readDirectory($path)
255255
{
256256
try {
257-
$flags = \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::UNIX_PATHS;
257+
$flags = \FilesystemIterator::SKIP_DOTS |
258+
\FilesystemIterator::UNIX_PATHS |
259+
\RecursiveDirectoryIterator::FOLLOW_SYMLINKS;
260+
258261
$iterator = new \FilesystemIterator($path, $flags);
259262
$result = [];
260263
/** @var \FilesystemIterator $file */

0 commit comments

Comments
 (0)