extension

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

Gets the extension of a path. This method works with the path structure and doesn't check if the path actually exists in the filesystem.

Return

The extension of path or empty string if path doesn't have an extension.

Parameters

path

The path to examine.