added a new recursive function that looks for all the folders and files inside a folder