The GlobIterator class
Introduction
Iterates through a file system in a similar fashion to glob().
Class synopsis
GlobIterator
extends
FilesystemIterator
implements
Iterator
,
Traversable
,
SeekableIterator
,
Countable
{
/* Methods */
__construct
( string $path
[, integer $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO
] )
/* Inherited methods */
FilesystemIterator::__construct
( string $path
[, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS
] )
}Table of Contents
- GlobIterator::__construct — Construct a directory using glob
- GlobIterator::count — Get the number of directories and files