extname
extname()
Extracts the file extension from a path.
This method variant accepts a string path and returns a string path.
Return
The extracted extension.
Parameters
path
The path to extract the extension from.
See also
extname()
Extracts the file extension from a path.
This method variant accepts a Path object and returns a String object.
Return
The extracted extension as a Kotlin path.
Parameters
path
The path to extract the extension from.
See also
extname()
Extracts the file extension from a path.
This method variant accepts a NodePath object and returns a String object.
Return
The extracted extension as a Node path.
Parameters
path
The path to extract the extension from.