name

expect val name: String(source)

Returns the name of the file or directory represented by this path.

How the name is resolved is platform-specific.

In general, one may expect that for a path like Path("home", "Downloads", "file.txt") the name is file.txt.

actual val name: String(source)
actual val name: String(source)
actual val name: String(source)
actual val name: String(source)