ΒΆstd::error_code create_hard_link(
    const llvm::Twine& to,
    const llvm::Twine& from)

Description

Create a hard link from \a from to \a to, or return an error.

Declared at: llvm/include/llvm/Support/FileSystem.h:337

Parameters

const llvm::Twine& to
The path to hard link to.
const llvm::Twine& from
The path to hard link from. This is created.

Returns

errc::success if the link was created, otherwise a platform specific error_code.