<?php
$path = ".";
try{
$dirIterator = new RecursiveDirectoryIterator($path);
foreach ( $iterator = new RecursiveIteratorIterator($dirIterator
, RecursiveIteratorIterator::SELF_FIRST) as $file){
echo str_repeat(" ", $iterator->getDepth());
if( $file->isDir() ) // is directory
echo $file->getFilename()."/\n";
else // is file
echo $file->getFilename()."\n";
}
// ReflectionObject::export( $iterator );
// ReflectionClass::export('RecursiveIteratorIterator');
}catch( Exception $errorObj ){
echo $errorObj->getMessage();
}
http://hain.jp/htsrv/trackback.php/218
No Comments/Trackbacks for this post yet...
極論istの技術屋を始めて早幾年。 流れの速い業界の波にもまれながらも精一杯生きている様をとくとごらんあれ。