List directories recursively
The following groovy snippet lists all subdirectories of the current directory.
new File("test").eachDirRecurse() { dir ->
println dir.getPath()
}
test\bar test\foo test\foo\sub
The following groovy snippet lists all subdirectories of the current directory.
new File("test").eachDirRecurse() { dir ->
println dir.getPath()
}
test\bar test\foo test\foo\sub