public function getAllChildren($recursive = false)
    {
        return $this->appendIterator(
            function ($path) use ($recursive) {
                return $path->getIterator($recursive);
            }
        );
    }
public function getAllChildren($recursive = false)
    {
        return $this->appendIterator(
            function ($path) use ($recursive) {
                return $path->getIterator($recursive);
            }
        );
    }
public function getAllChildren ( $ recursive = false ) { return $ this -> appendIterator ( function ( $ path ) use ( $ recursive ) { return $ path -> getIterator ( $ recursive ) ; } ) ; }
Get all files and folders as an iterator.

@param  boolean $recursive True to support recrusive.

@return  \AppendIterator  An OutterIterator contains all paths' iterator.

@since  2.0
Get all files and folders as an iterator .