name

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

Retrieves the name of the given file path.

Return

the name of the file or directory represented by the provided path

Parameters

path

the file path from which to extract the name