I would really need some help :(
Write a recursive method, as a parameter to accept the folder name (absolute or relative to the current folder) that prints lists of all the files and all folders in the folder, which is given in parameter, and displays all folders in all subfolders, ... Output, the entire tree structure of files and folders.
Before each folder should be "*", before each file "-". From the shift should be apparent how deep into the tree, the file / folder is located.
>>> write_files('Desktop') - picture.txt * Songs * Romantic songs - Do you love me.mp3 - When we meet.mp3 - heart.jpg * Movies - The kid.xvid
Edited 6 Years Ago by Binika: n/a