You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/finder.rst
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,6 +222,11 @@ and adding delimiters:
222
222
The :method:`Symfony\\Component\\Finder\\Finder::notPath` method excludes files by path::
223
223
224
224
$finder->notPath('other/dir');
225
+
226
+
The method :method:`Symfony\\Component\\Finder\\Finder::path` will match both directories and files. For example, the following will match ``foo/bar.yml`` but also ``foo.yml``::
0 commit comments