absolute

Platform and version requirements: JVM (1.5), JRE7 (1.5)
fun Path.absolute(): Path

Converts this possibly relative path to an absolute path.

If this path is already absolute, returns this path unchanged. Otherwise, resolves this path, usually against the default directory of the file system.

May throw an exception if the file system is inaccessible or getting the default directory path is prohibited.

See Path.toAbsolutePath for further details about the function contract and possible exceptions.

© 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/java.nio.file.-path/absolute.html