kotlin-stdlib / kotlin.io.path / java.nio.file.Path / name name JVM JRE7 1.5 val Path.name: String(source) Returns the name of the file or directory denoted by this path as a string, or an empty string if this path has zero path elements.