← Docs
kotlin-stdlib / kotlin.io.path / java.nio.file.Path / nameWithoutExtension

nameWithoutExtension

JVM
JRE7
1.5
val Path . nameWithoutExtension : String
(source)

Returns the name of this file or directory without an extension, or an empty string if this path has zero path elements.

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 .