extension

JVM
1.0
val File.extension: String

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