Lines Matching refs:depth
148 'depth' => preg_match('#^' . preg_quote($file, '#') . '(/|$)#', '/' . $ns) ? 0 : -1,
176 * $opts['depth'] recursion level, 0 for all
198 if (empty($opts['depth'])) return true; // recurse forever
199 $depth = substr_count($file, '/');
200 if ($depth >= $opts['depth']) return false; // depth reached
244 * $opts['depth'] recursion level, 0 for all
266 if (empty($opts['depth'])) return true; // recurse forever
267 $depth = substr_count($file, '/');
268 if ($depth >= $opts['depth']) return false; // depth reached
365 * $opts['depth'] recursion level, 0 for all
382 if (($opts['depth'] ?? 0) > 0) {
385 ($type == 'd' && count($parts) >= $opts['depth'])
386 || ($type != 'd' && count($parts) > $opts['depth'])
388 return false; // depth reached
472 * depth int recursion depth. 0 for unlimited (default: 0)
518 if (empty($opts['depth'])) {
521 $depth = substr_count($file, '/');
522 if ($depth >= $opts['depth']) {
523 $return = false; // depth reached