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 2e332ddCopy full SHA for 2e332dd
components/finder.rst
@@ -223,6 +223,13 @@ The :method:`Symfony\\Component\\Finder\\Finder::notPath` method excludes files
223
224
$finder->notPath('other/dir');
225
226
+The :method:`Symfony\\Component\\Finder\\Finder::path` method matches
227
+both directories and files. For example, the following will match ``foo/bar.yml``
228
+but also ``foo.yml``::
229
+
230
+ $finder->in(__DIR__)->path('foo')->name('*.yml);
231
232
233
File Size
234
~~~~~~~~~
235
0 commit comments