onPreVisitDirectory

abstract fun onPreVisitDirectory(function: (directory: Path, attributes: BasicFileAttributes) -> FileVisitResult)(source)

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

The provided callback is invoked for a directory before its contents are visited. Depending on the return value of the function:

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

Since Kotlin

2.1

See also