cvs: spl /examples directorytree.php
| From: | Marcus Boerger | Date: | Mon, 17 Nov 2003 00:56:15 +0000 |
| Subject: | cvs: spl /examples directorytree.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-24564@lists.php.net to get a copy of this message | ||
helly Sun Nov 16 19:56:15 2003 EDT
Modified files:
/spl/examples directorytree.php
Log:
WS
Index: spl/examples/directorytree.php
diff -u spl/examples/directorytree.php:1.1 spl/examples/directorytree.php:1.2
--- spl/examples/directorytree.php:1.1 Sun Nov 9 09:05:36 2003
+++ spl/examples/directorytree.php Sun Nov 16 19:56:15 2003
@@ -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";
}