There was an error while loading. Please reload this page.
1 parent 19da3e3 commit f7d2e9fCopy full SHA for f7d2e9f
components/finder.rst
@@ -302,6 +302,7 @@ Directory Depth
302
By default, the Finder recursively traverses directories. Restrict the depth of
303
traversing with :method:`Symfony\\Component\\Finder\\Finder::depth`::
304
305
+ // this will only consider files/directories which are direct children
306
$finder->depth('== 0');
307
$finder->depth('< 3');
308
@@ -311,8 +312,6 @@ Restrict by a depth range by chaining calls or passing an array::
311
312
313
// same as above
314
$finder->depth(['> 2', '< 5']);
-
315
-Depth 0 means direct children (files and folders).
316
317
Custom Filtering
318
~~~~~~~~~~~~~~~~
0 commit comments