resolveLink

fun resolveLink(link: File): String

Resolve a given link/symlink to its source.

Return

Path to the source of the link. If the specified file is not a link, the path to the passed file is returned.

Author

Griefed

Parameters

link

The link you want to resolve.

Throws

if the link could not be parsed.

if the specified file is neither a file, lnk nor symlink.