Lines Matching defs:dir
24 * @param string $dir Current directory beyond $base
30 function search(&$data, $base, $func, $opts, $dir = '', $lvl = 1, $sort = 'natural')
42 $dh = @opendir($base . '/' . $dir);
46 if (is_dir($base . '/' . $dir . '/' . $file)) {
47 $dirs[] = $dir . '/' . $file;
50 $files[] = $dir . '/' . $file;
51 $filepaths[] = $base . '/' . $dir . '/' . $file;
64 foreach ($dirs as $dir) {
65 if (call_user_func_array($func, [&$data, $base, $dir, 'd', $lvl, $opts])) {
66 search($data, $base, $func, $opts, $dir, $lvl + 1, $sort);
93 * would break the recursion (You can have an nonreadable dir over a readable