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

onPreVisitDirectory

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

(source)

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

By default, FileVisitor.preVisitDirectory 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 .