fun Path.createSymbolicLinkPointingTo( target: Path, vararg attributes: FileAttribute<*> ): Path
Creates a new symbolic link located by this path to the given target.
Calling this function may require the process to be started with implementation specific privileges to create symbolic links.
FileAlreadyExistsException - if a file with this name already exists (optional specific exception, some implementations may throw a more general one).
UnsupportedOperationException - if the implementation does not support symbolic links or the attributes array contains an attribute that cannot be set atomically when creating the symbolic link.
See Also
© 2010–2023 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/create-symbolic-link-pointing-to.html