DirectoryIterator::__construct
Constructs a new directory iterator from a path
&reftitle.description;
DirectoryIterator::__construct
stringpath
Constructs a new directory iterator from a path.
&reftitle.parameters;
path
The path of the directory to traverse.
&reftitle.errors;
Throws an UnexpectedValueException
if the path cannot be opened.
&reftitle.examples;
A DirectoryIterator::__construct example
This example will list the contents of the directory containing the script.
isDot()) {
var_dump($fileinfo->getFilename());
}
}
?>
]]>
&reftitle.seealso;
SplFileInfo
Iterator