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 a01f87f commit 477ed35Copy full SHA for 477ed35
components/finder.rst
@@ -202,7 +202,10 @@ Path
202
Restrict files and directories by path with the
203
:method:`Symfony\\Component\\Finder\\Finder::path` method::
204
205
- $finder->path('some/special/dir');
+ // matches files that contain "data" anywhere in their paths (files or directories)
206
+ $finder->path('data');
207
+ // for example this will match data/*.xml and data.xml if they exist
208
+ $finder->path('data')->name('*.xml');
209
210
On all platforms slash (i.e. ``/``) should be used as the directory separator.
211
0 commit comments