readSymbolicLink

JVM
JRE7
1.5
fun Path.readSymbolicLink(): Path

Reads the target of a symbolic link located by this path.

Exceptions

UnsupportedOperationException - if symbolic links are not supported by this implementation.

NotLinkException - if the target is not a symbolic link (optional specific exception, some implementations may throw a more general one).

See Also

Files.readSymbolicLink