trySymlink

fun trySymlink(target: Path, source: Path): Boolean

Attempts to (re)create a symbolic link at target pointing to source. Returns true on success, false if symbolic links are unavailable on this platform (caller should fall back to a copy-based path).