Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 99b0f7a

Browse filesBrowse files
Reworded the note as a code comment
1 parent 5e96849 commit 99b0f7a
Copy full SHA for 99b0f7a

File tree

1 file changed

+1
-2
lines changed
Filter options

1 file changed

+1
-2
lines changed

‎components/finder.rst

Copy file name to clipboardExpand all lines: components/finder.rst
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.