a file catalog program in Groovy