How to display all folders and tree view using the RecursiveDirectoryIterator Class?

Hi all. How do I list the files and folders in the form of the tree (Source using the RecursiveDirectoryIterator class?
If this class simply displays the path of folders and files. How can I display like this?
July 12th 19 at 17:18
1 answer
July 12th 19 at 17:20
Here, here is a good description, and the example is.
I probably forgot to specify. How to do this for php!
For c++ I don't! If only such a view! - wiley_Torphy70 commented on July 12th 19 at 17:23
: sorry, didn't notice. - Gerson.Pfeffer commented on July 12th 19 at 17:26

Find more questions by tags PHPProgramming