public static void eachDir ( Path self , @ ClosureParams ( value = SimpleType . class , options = "java.nio.file.Path" ) Closure closure ) throws IOException { // throws FileNotFoundException, IllegalArgumentException { eachFile ( self , FileType . DIRECTORIES , closure ) ; }
Invokes the closure for each subdirectory in this directory ignoring regular files .