Absolutely, you should check the documentation for the file in Groovy. It is available here and gives you several different helper methods for recursively iterating over a file structure.
// Simplest possible example, iterating over each file in every subfolder
new File('.').eachFileRecurse { println it.name }
xlson source
share