For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

visit

abstract fun visit(visitor: FileVisitor): FileTree(source)

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.

Return

this

Since

0.8

Parameters

visitor

The visitor.


abstract fun visit(@DelegatesTo(value = FileVisitDetails::class) visitor: Closure): FileTree(source)

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 FileVisitDetails

Return

this

Since

0.8

Parameters

visitor

The visitor.


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

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 FileVisitDetails

Return

this

Since

3.3

Parameters

visitor

The visitor.