class RecursiveDirectoryIterator extends RecursiveDirectoryIterator (View source)

A Directory iterator extends from SPL RecursiveDirectoryIterator.

Methods

current()

Get file information of the current element.

Details

at line line 28
SplFileInfo current()

Get file information of the current element.

We remove . and .. when fetching folders' path.

Return Value

SplFileInfo The filename, file information, or $this depending on the set flags. See the: http://www.php.net/manual/en/class.filesystemiterator.php#filesystemiterator.constants