onVisitFile

abstract fun onVisitFile(function: (file: Path, attributes: BasicFileAttributes) -> FileVisitResult)(source)

Overrides the corresponding function of the built FileVisitor with the provided function.

The provided callback is invoked when a file is visited. Depending on the return value of the function:

By default, FileVisitor.visitFile of the built file visitor returns FileVisitResult.CONTINUE.

Since Kotlin

2.1

See also