Sorting out scripts to handle more files

Traversing filestructure