extension

open suspend override fun extension(path: Path): String(source)

Gets the extension of the file represented by the given path.

Return

The file extension as a string.

Parameters

path

The path of the file whose extension is to be determined.