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

Returns the final path segment.

import klyn.io

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