Finder::depth()

Finder|SplFileInfo[] depth(int $level)

Adds tests for the directory depth.

Usage:

$finder->depth('> 1') // the Finder will start matching at level 1. $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point.

Parameters

int $level The depth level expression

Return Value

Finder|SplFileInfo[] The current Finder instance

See also

DepthRangeFilterIterator
NumberComparator
doc_Symfony
2016-10-28 06:16:51
Comments
Leave a Comment

Please login to continue.