I have an array like this:
In this array I have folders (dir1, dir2, dir3, etc...) and files. I need to list all the directories and files but printing which is t