mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 17:27:30 +00:00
11 lines
281 B
PHP
11 lines
281 B
PHP
<?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);
|
|
}
|
|
}
|
|
|
|
?>
|