name

open suspend override fun name(path: Path): String(source)

Retrieves the name of the file or directory represented by the specified path.

Return

the name of the file or directory as a string

Parameters

path

the path from which the name should be extracted