Path

Platform and version requirements: JVM (1.5), JRE7 (1.5)
fun Path(path: String): Path

Converts the provided path string to a Path object of the default filesystem.

See Also

Paths.get

Platform and version requirements: JVM (1.5), JRE7 (1.5)
fun Path(base: String, vararg subpaths: String): Path

Converts the name sequence specified with the base path string and a number of subpaths additional names to a Path object of the default filesystem.

See Also

Paths.get

© 2010–2021 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.io.path/-path.html