klyn.io.Path.extension
property
public native readonly property extension as String
Description

Returns the file extension without the leading dot, or "".

import klyn.io

path = Path("/tmp/demo.txt")
assert path.extension == "txt"