blob: a8382e2baa4b88531fa72ea0f786e4321edd0f04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<?php
class DirectoryGraphIterator extends DirectoryTreeIterator
{
function __construct($path)
{
RecursiveIteratorIterator::__construct(new CachingRecursiveIterator(new ParentIterator(new RecursiveDirectoryIterator($path)), CIT_CALL_TOSTRING|CIT_CATCH_GET_CHILD), 1);
}
}
?>
|