onVisitFileFailed

abstract fun onVisitFileFailed(function: (file: Path, exception: IOException) -> FileVisitResult)(source)

Overrides the corresponding function of the built file visitor with the provided function.

By default, FileVisitor.visitFileFailed of the built file visitor re-throws the I/O exception that prevented the file from being visited.

Since Kotlin

1.7