Skip to content

Commit f7d2e9f

Browse files
committed
Reword
1 parent 19da3e3 commit f7d2e9f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/finder.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ Directory Depth
302302
By default, the Finder recursively traverses directories. Restrict the depth of
303303
traversing with :method:`Symfony\\Component\\Finder\\Finder::depth`::
304304

305+
// this will only consider files/directories which are direct children
305306
$finder->depth('== 0');
306307
$finder->depth('< 3');
307308

@@ -311,8 +312,6 @@ Restrict by a depth range by chaining calls or passing an array::
311312

312313
// same as above
313314
$finder->depth(['> 2', '< 5']);
314-
315-
Depth 0 means direct children (files and folders).
316315

317316
Custom Filtering
318317
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)