← Docs
kotlin-stdlib / kotlin.io.path / FileVisitorBuilder / onVisitFile

onVisitFile

JVM
JRE7
1.0
abstract fun onVisitFile (
function : ( file : Path , attributes : BasicFileAttributes ) -> FileVisitResult )

(source)

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

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

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .