@ExperimentalPathApi sealed interface FileVisitorBuilder
The builder to provide implementation of the file visitor that fileVisitor builds.
Overrides the corresponding function of the built file visitor with the provided function.
abstract fun onPostVisitDirectory( function: (directory: Path, exception: IOException?) -> FileVisitResult)
Overrides the corresponding function of the built file visitor with the provided function.
abstract fun onPreVisitDirectory( function: (directory: Path, attributes: BasicFileAttributes) -> FileVisitResult)
Overrides the corresponding function of the built file visitor with the provided function.
abstract fun onVisitFile( function: (file: Path, attributes: BasicFileAttributes) -> FileVisitResult)
Overrides the corresponding function of the built file visitor with the provided function.
abstract fun onVisitFileFailed( function: (file: Path, exception: IOException) -> FileVisitResult)
© 2010–2023 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io.path/-file-visitor-builder/index.html