You need to implement a recursive method that will list all folders within a folder, thus:
mainDir |--dir1 | |--dir11 | |--dir12 | |--dir121 |--dir2 | |--dir23 | |--dir231 |--dir3 As an argument, you can take only the path to the folder itself, and I just won’t understand how to indent the names.
mainDir) - 0. And judging by the general logic, with zero indent|should be only in three lines (dir1,dir2,dir3) - Regent