Function recursive_dir_iterator
Returns a recursive directory iterator that yields absolute filenames.
This iterator is not broken like PHP's built-in DirectoryIterator (which will read the first file from a stream wrapper, then rewind, then read it again).
Parameters summary
string |
$path |
Path to traverse (e.g., s3://bucket/key, /tmp) |
resource |
$context = null |
Stream context options. |
Return value summary
Generator
|
Yields absolute filenames. |