now handles a directory with multiple files & multiple directories that contain multiple files