We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Finder::path
1 parent 1026863 commit cd28675Copy full SHA for cd28675
components/finder.rst
@@ -206,7 +206,10 @@ Path
206
Restrict files and directories by path with the
207
:method:`Symfony\\Component\\Finder\\Finder::path` method::
208
209
- $finder->path('some/special/dir');
+ // matches files that contain "data" anywhere in their paths (files or directories)
210
+ $finder->path('data');
211
+ // for example this will match data/*.xml and data.xml if they exist
212
+ $finder->path('data')->name('*.xml');
213
214
On all platforms slash (i.e. ``/``) should be used as the directory separator.
215
0 commit comments