]> granicus.if.org Git - php/commitdiff
WS
authorMarcus Boerger <helly@php.net>
Mon, 17 Nov 2003 00:56:15 +0000 (00:56 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 17 Nov 2003 00:56:15 +0000 (00:56 +0000)
ext/spl/examples/directorytree.php

index 744a17a99ae17f21988a83f2fe12ff9fb1e2f386..a0cd1d9a0c68dde7bcb313543f05f8cc6ab01dda 100755 (executable)
@@ -10,7 +10,8 @@
  */
 
 $length = $argc > 3 ? $argv[3] : NULL;
-foreach(new LimitIterator(new DirectoryTree($argv[1]), @$argv[2], $length) as $pathname => $file) {
+
+foreach(new RecursiveIteratorIterator(new DirectoryTreeIterator($argv[1])) as $pathname => $file) {
        echo "$pathname\n";
 }