absolutePathString

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

Converts this possibly relative path to an absolute path and returns its string representation.

Basically, this method is a combination of calling absolute and pathString.

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-path-string.html