createSymbolicLinkPointingTo

JVM
JRE7
1.5
fun Path . createSymbolicLinkPointingTo (
target : Path ,
vararg attributes : FileAttribute < * >
) : Path

(source)

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.

Exceptions

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

Files.createSymbolicLink