← Docs
kotlin-stdlib / kotlin.io / java.io.File / extension

extension

JVM
1.0
val File . extension : String
(source)

Returns the extension of this file (not including the dot), or an empty string if it doesn't have one.

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 .