kotlin-stdlib / kotlin.io.path / java.nio.file.Path / extension extension JVM JRE7 1.5 val Path.extension: String(source) Returns the extension of this path (not including the dot), or an empty string if it doesn't have one.