extname

open fun extname(path: String): String

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


open fun extname(path: Path): String

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


abstract fun extname(path: Path): String

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.

See also