File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,13 @@ Each pattern has to resolve to at least one directory path.
103
103
Exclude directories from matching with the
104
104
:method: `Symfony\\ Component\\ Finder\\ Finder::exclude ` method::
105
105
106
+ // directories passed as argument must be relative to the ones defined with the in() method
106
107
$finder->in(__DIR__)->exclude('ruby');
107
108
108
109
.. versionadded :: 2.3
109
110
The :method: `Symfony\\ Component\\ Finder\\ Finder::ignoreUnreadableDirs `
110
111
method was introduced in Symfony 2.3.
111
112
112
- Note that the excluded paths provided are relative to the `in() ` directories.
113
-
114
113
It's also possible to ignore directories that you don't have permission to read::
115
114
116
115
$finder->ignoreUnreadableDirs()->in(__DIR__);
You can’t perform that action at this time.
0 commit comments