name

abstract suspend fun name(path: Path): String(source)

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

Return

The name of the file or directory as a string.

Parameters

path

The path representing a file or directory whose name is to be retrieved.