Say I have something like this:
new File("test").eachFile() { file->
println file.getName()
}
This prints the full filename of every file in the test
directory. Is there a Groovy way to get the filename without any extension? (Or am I back in regex land?)