absoluteFile2

@JvmName(name = "absoluteFile2Of")
fun File.absoluteFile2(): File(source)

If this abstract pathname is already absolute, then the pathname File is simply returned.

If this abstract pathname is the empty abstract pathname then the pathname File of the current working directory is returned. Otherwise, this pathname is resolved in a system-dependent way.

Return

The absolute pathname File of this abstract pathname.

See also

Throws

If interaction with the filesystem was necessary to construct the pathname and a failure occurred, such as a security exception.

UnsupportedOperationException

On Kotlin/JS-Browser if interaction with the filesystem is necessary to construct the pathname.