api / org.gradle.api.file / FileTree / visit

visit

abstract fun visit(visitor: FileVisitor): FileTree

Visits the files and directories in this file tree. Files are visited in depth-first prefix order, so that a directory is visited before its children.

Parameters

visitor - The visitor.

Return
this

abstract fun visit(visitor: Closure<Any>): FileTree

Visits the files and directories in this file tree. Files are visited in depth-first prefix order, so that a directory is visited before its children. The file/directory to be visited is passed to the given closure as a

Parameters

visitor - The visitor.

Return
this

abstract fun visit(visitor: Action<in FileVisitDetails>): FileTree

Visits the files and directories in this file tree. Files are visited in depth-first prefix order, so that a directory is visited before its children. The file/directory to be visited is passed to the given action as a

Parameters

visitor - The visitor.

Return
this