extension

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

Since Kotlin

1.5