Used os.walk to recurse into folders

Completed the "@ToDo" previously on line 17 by using os.walk to recurse into folders.