extension

abstract suspend fun extension(path: Path): String(source)

Retrieves the file extension from the specified path.

Return

The file extension as a string, or an empty string if the path does not have an extension.

Parameters

path

The file path from which to extract the extension.