Skip to content

Commit 99b0f7a

Browse files
Reworded the note as a code comment
1 parent 5e96849 commit 99b0f7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/finder.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,13 @@ Each pattern has to resolve to at least one directory path.
103103
Exclude directories from matching with the
104104
:method:`Symfony\\Component\\Finder\\Finder::exclude` method::
105105

106+
// directories passed as argument must be relative to the ones defined with the in() method
106107
$finder->in(__DIR__)->exclude('ruby');
107108

108109
.. versionadded:: 2.3
109110
The :method:`Symfony\\Component\\Finder\\Finder::ignoreUnreadableDirs`
110111
method was introduced in Symfony 2.3.
111112

112-
Note that the excluded paths provided are relative to the `in()` directories.
113-
114113
It's also possible to ignore directories that you don't have permission to read::
115114

116115
$finder->ignoreUnreadableDirs()->in(__DIR__);

0 commit comments

Comments
 (0)