def files = [] def toto="etc" folder = new File("../2514-2.436433166546167403/${toto}/") folder.traverse(maxDepth: 0) { files.add(it) } println files