File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
lib/internal/Magento/Framework/Setup Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Framework \App \State ;
13
13
use Magento \Framework \App \ObjectManager ;
14
14
15
+ /**
16
+ * Checks permissions to files and folders.
17
+ */
15
18
class FilePermissions
16
19
{
17
20
/**
@@ -147,6 +150,7 @@ public function getInstallationCurrentWritableDirectories()
147
150
*/
148
151
private function checkRecursiveDirectories ($ directory )
149
152
{
153
+ /** @var $directoryIterator \RecursiveIteratorIterator */
150
154
$ directoryIterator = new \RecursiveIteratorIterator (
151
155
new \RecursiveDirectoryIterator ($ directory , \RecursiveDirectoryIterator::SKIP_DOTS ),
152
156
\RecursiveIteratorIterator::CHILD_FIRST
@@ -168,6 +172,8 @@ private function checkRecursiveDirectories($directory)
168
172
]
169
173
);
170
174
175
+ $ directoryIterator ->setMaxDepth (1 );
176
+
171
177
$ foundNonWritable = false ;
172
178
173
179
try {
You can’t perform that action at this time.
0 commit comments