Path.hardlinkTo

void hardlinkTo(string target) const

Create a hard link at this path pointing to the given target.

On POSIX, this uses the link() syscall. On Windows, uses std.file.hardLink.

Parameters

targetThe path to the file to link to (source).

Throws

Exception on failure.