Skip to content

Commit 3bfa497

Browse files
committed
WS
1 parent 8837776 commit 3bfa497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/spl/examples/directorytree.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
*/
1111

1212
$length = $argc > 3 ? $argv[3] : NULL;
13-
foreach(new LimitIterator(new DirectoryTree($argv[1]), @$argv[2], $length) as $pathname => $file) {
13+
14+
foreach(new RecursiveIteratorIterator(new DirectoryTreeIterator($argv[1])) as $pathname => $file) {
1415
echo "$pathname\n";
1516
}
1617

0 commit comments

Comments
 (0)