# 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.