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 5e96849

Browse filesBrowse files
authored
Update finder.rst
1 parent 9970d42 commit 5e96849
Copy full SHA for 5e96849

File tree

1 file changed

+1
-20
lines changed
Filter options

1 file changed

+1
-20
lines changed

‎components/finder.rst

Copy file name to clipboardExpand all lines: components/finder.rst
+1-20Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,7 @@ Exclude directories from matching with the
109109
The :method:`Symfony\\Component\\Finder\\Finder::ignoreUnreadableDirs`
110110
method was introduced in Symfony 2.3.
111111

112-
Note that the excluded paths provided are relative to the `in()` directories. For
113-
example if you have:
114-
115-
/path/to/project
116-
\-- A/
117-
|-- a0
118-
|-- a1
119-
\-- B
120-
|-- b0
121-
\-- b1
122-
123-
And do the following:
124-
125-
Finder::create()
126-
->files()
127-
->in('/path/to/project)
128-
->exclude('A/B')
129-
;
130-
131-
Then the finder will collect the files `a0` and `a1`.
112+
Note that the excluded paths provided are relative to the `in()` directories.
132113

133114
It's also possible to ignore directories that you don't have permission to read::
134115

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.